Insert Link from File Changes Current DirectoryLast reviewed: August 31, 1995Article ID: Q109553 |
The information in this article applies to:
SUMMARYThe Open common dialog box changes the current working directory unless OFN_NOCHANGEDIR is specified. The UI Change Source dialog box depends on the change directory functionality, therefore, the Insert Object dialog box cannot be modified to change this behavior.
MORE INFORMATIONThe Insert Object dialog box allows a user to insert a linked object into the container document from a file residing on disk. This action changes the current working directory to the drive and directory in which the file resides. If this file is located on a network drive and the network drive becomes unavailable after the link is established, any subsequent attempt to insert an embedded object will fail until the working directory is changed to a drive and directory that is accessible. The problem materializes when the OLE 2.0 libraries attempt to WinExec a server application for a subsequent embedded object. In this situation, the call to WinExec fails because the current working directory is invalid.
|
Additional reference words: 2.01 OpenFile
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |