PRB: DDEInitiate() Gives Remote Data Not Accessible Dialog BoxID: Q105005 The information in this article applies to:
SYMPTOMSIn FoxPro for Windows the DDEInitiate() function may result in getting an undesirable "? Remote data not accessible. Start application '<appname>.EXE'?" dialog box. Code following the DDEInitiate() function may check for the return of -1, which indicates that the channel was not established; however, the code is not yet executed.
CAUSEThe default setting for the Safety clause of the DDESetOption() function is true (.T.). This setting specifies whether a dialog box is displayed when the DDEInitiate() function is used to establish a channel to a server application and the application is not currently open.
RESOLUTIONIssue the DDESetOption() function prior to the DDEInitiate() function to change the setting for Safety to false (.F.). For example, the following code establishes a DDE channel between Microsoft FoxPro for Windows and Microsoft Excel, even if Microsoft Excel is not presently minimized in the Windows background, without receiving the dialog box message mentioned above:
REFERENCES"Language Reference," version 2.5, pages L3-366, L3-374 (c) Microsoft Corporation 1997, All Rights Reserved. Contributions by Perry Newton, Microsoft Corporation
|
Last Reviewed: August 13, 1997 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |