How To Set Up OLE Automation in Visual FoxPro 5.0Last reviewed: January 20, 1997Article ID: Q156014 |
The information in this article applies to:
SUMMARYThis article discusses the registry settings required for OLE Automation and how to set them if you do not use the Setup Wizard.
MORE INFORMATIONOLE Automation works if you install a product correctly or you use the Setup Wizard (assuming you choose an OLE Server). The Setupwiz.xls file lists the files installed for certain options. This is the best way to view which files you need. There are circumstances that may affect the proper functioning of automation servers. You can usually remedy these circumstances with the following.
Local AutomationYou do not need extra files for remote automation except for the servers themselves. Primarily, you need the Oleaut32.dll file, which is installed by Visual FoxPro, the Setup Wizard, and Windows.
Registering OLE Servers LocallySimply building an OLE server (.exe or .dll file) via the Project Manager or BUILD command automatically registers the server on that machine. If you want to copy the OLE server to another machine (not via the Setup Wizard) and register it, you should do the following:
Remote AutomationRemote automation requires several components in addition to the server files to work correctly, including the following Automation Proxy and Automation Manager files:
Autprx32.dll Autmgr32.exe Registering OLE Servers LocallyThere are several ways to register a remote automation server. The easiest is to use the Remote Automation Connection Manager (RacMan). You must first have the server registered locally. RacMan uses the following files:
Racmgr32.exe Racreg32.dll Vb40032.dll Odkob32.dll Comctl32.dllYou can also use the Clireg32.exe component to register a server remotely. All that is required to use the Clireg32.exe component is the .vbr file.
Updating a ServerIt is always a good idea to reregister a server when you update it. If you are using the Project Manager, the BUILD EXE command, or the BUILD DLL command, the server is automatically updated on that machine. NOTE: You can choose the Generate New Registry IDs option to re-create new GUIDs for the server settings. You can reregister servers on other remote machines using the techniques described above. These techniques include the Setup Wizard, the RacMan component, the RegSvr32 component, and the CliReg32 component.
|
KBCategory: kbusage kbprg kbole kbhowto
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |