The information in this article applies to:
SUMMARYThis article describes how to reference specific configuration variables when Visual FoxPro is set up as an OLE Automation Server. When you define an OLE server, you can either reference the Visual FoxPro Application object or create custom OLE classes. These two types of OLE objects require different methods to read environment settings. MORE INFORMATION
Visual FoxPro exposes FoxPro as an OLE server. The Application object
provides the top level of the hierarchy. For example, in an OLE client
application, you can run the following command to create an OLE object:
The GUID is different for every install of Visual FoxPro. The value of this
key for Visual FoxPro 5.0 is:
For Visual FoxPro 6.0, the value of this key is:
When you create your own custom OLE Automation servers, the OLE classes you
create are delivered in either a .dll or an .exe file. Before you build the
.exe or .dll, add the Config.fpw file into the project and make sure it is
marked as included. At run time, the Config.fpw that resides inside of the
.exe or .dll file is used.
To specify a different Config.fpw file once an OLE Automation Server is distributed, you can use the same procedure as above and modify the registry key for the OLE server. NOTE: If you have included the Config.fpw file in the project, the -C switch is ignored. Additional query words:
Keywords : kbinterop kbAutomation kbVFp500 kbVFp600 |
Last Reviewed: August 20, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |