Kbase 21255: Error 293 when interfacing with Microsoft Outlook 2000
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  10/16/2008 |
|
Status: Unverified
SYMPTOM(s):
Error 293 when interfacing with MS Outlook
"<file-name>" was not found. (293)
The current working directory has changed.
CHANGE:
Recently made MAPI calls through Outlook
CAUSE:
This error is received because MS Outlook changes the current directory to the directory, c:\Program Files\System\MAPI\...
FIX:
Change the current directory to the one that was being used before MAPI.
To do this you can use FILE-INFO:FULL-PATHNAME to get the current working directory (or GetCurrentDirectory API) and the SetCurrentDirectory API.
For example:
DEFINE VARIABLE szOriginalDirectory AS CHARACTER NO-UNDO.
FILE-INFO:FILE-NAME = ".".
szOriginalDirectory = FILE-INFO:FULL-PATHNAME.
/* do MAPI stuff */
RUN SetCurrentDirectoryA(szOriginalDirectory).
PROCEDURE SetCurrentDirectoryA EXTERNAL "kernel32.dll":
DEFINE INPUT PARAMETER newdir AS CHAR.
END.