Article ID: 156547 - View products that this article applies to.
This article was previously published under Q156547
This article describes how you can manually register an OLE server on a computer that has never had Microsoft Visual FoxPro installed.
This article also assumes you already know how to create a custom OLE server. For more information, see the Help file.
To register an .exe or a .dll custom OLE server, you need to have the following files located in the \System directory for Windows 95 or the \System32 directory for Windows NT or later on the computer you are installing on:
For Visual FoxPro 5.0:
For Visual FoxPro 6.0:
For Visual FoxPro 7.0:
For Visual FoxPro 8.0:
Vfp7r.dll- For single threaded servers. Vfp7renu.dll Vfp7t.dll- For multithreaded servers.
For Visual FoxPro 9.0:
Vfp8r.dll- For single threaded servers. Vfp8renu.dll Vfp8t.dll- For multithreaded servers.
Vfp9r.dll- For single threaded servers. Vfp9renu.dll Vfp9t.dll- For multithreaded servers.
If you do not have these files, you can obtain them from the computer where you have Visual FoxPro installed.
When you build a custom OLE server, the following three files are created:
When trying to register an .exe file, you must have the .exe and the .vbr files. The example below assumes you already have a custom OLE server built and named Oleserver.exe:
Your .exe file should now be registered.
Here is an example that shows you how to register a .dll file:
When trying to register a .dll file you must have the .dll and .vbr files and have access to a third file, Regsvr32.exe. The example below assumes you already have a custom OLE server built and named Oleserver.dll:
You should get a message box that says "DllRegisterServer in OLEServer.dll succeeded." Your .dll file is now registered.
Note Manually registering these files is necessary only if you are not using the Visual FoxPro Setup Wizard (VFP 5.0 and 6.0) or InstallShield Express (VFP 7.0, 8.0 and 9.0) to install your custom OLE server.
Article ID: 156547 - Last Review: February 16, 2005 - Revision: 3.4