PRB: Microsoft MAPI Control Changes the Current Working Directory (244343)
The information in this article applies to:
- Microsoft Internet Explorer 5.0 for Windows NT 4.0
- Microsoft Visual Basic Learning Edition for Windows 6.0
- Microsoft Visual Basic Professional Edition for Windows 6.0
- Microsoft Visual Basic Enterprise Edition for Windows 6.0
This article was previously published under Q244343 SYMPTOMS
When running a Microsoft Visual Basic application that uses the Microsoft MAPI Control, and that application relies upon the current working directory, the application might not work as expected.
CAUSE
This is due to the fact that the working directory gets changed after calling the SignOn method of the MAPISession object. This was not the behavior prior to installing Internet Explorer 5.0.
RESOLUTION
Instead of relying on the current working directory, which can be modified at run-time, use App.Path or specify the full path of the file.
REFERENCESFor additional information on behavior differences between running projects in the IDE and compiled EXEs, click the article number below
to view the article in the Microsoft Knowledge Base:
201741 INFO: Differences of Behavior in Debug Mode and Compile Mode
For additional information on creating Outlook user profiles, click the article number below
to view the article in the Microsoft Knowledge Base:
195718 OL2000: (CW) How to Create a New User Profile for Outlook
Modification Type: | Major | Last Reviewed: | 12/12/2003 |
---|
Keywords: | kbprb kbString KB244343 kbAudDeveloper |
---|
|