You are currently offline, waiting for your internet to reconnect

How to manually register a custom OLE server

This article was previously published under Q156547
SUMMARY
This article describes how you can manually register an OLE server on acomputer that has never had Microsoft Visual FoxPro installed.

This article also assumes you already know how to create a custom OLEserver. For more information, see the Help file.
MORE INFORMATION
To register an .exe or a .dll custom OLE server, you need to have thefollowing 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:
   Vfp500.dll   Vfp5enu.dll				
For Visual FoxPro 6.0:
   Vfp6r.dll   Vfp6renu.dll				
For Visual FoxPro 7.0:
   Vfp7r.dll- For single threaded servers.   Vfp7renu.dll   Vfp7t.dll- For multithreaded  servers.				
For Visual FoxPro 8.0:
   Vfp8r.dll- For single threaded servers.   Vfp8renu.dll   Vfp8t.dll- For multithreaded  servers.				
For Visual FoxPro 9.0:
   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 computerwhere you have Visual FoxPro installed.

When you build a custom OLE server, the following three files are created:
  • The .dll or .exe file
  • A type library .tlb file (The .tlb file is optional and is not required to be distributed)
  • A registry .vbr file
Here is an example that shows you how to register an .exe file:

When trying to register an .exe file, you must have the .exe and the .vbrfiles. The example below assumes you already have a custom OLE server builtand named Oleserver.exe:
  • Oleserver.exe (This is the custom OLE server .exe file that you built from your project.)
  • Oleserver.vbr (This file gets automatically created when you build your custom OLE server.)
Once you copy these two files into the target machine, from the directorythat contains these two files, type the command below at the MS-DOS prompt.
OLEServer /regserver						
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 filesand have access to a third file, Regsvr32.exe. The example below assumesyou already have a custom OLE server built and named Oleserver.dll:
  • OLEServer.dll (This is the custom OLE server .dll file you built from your project.)
  • OLEServer.vbr (This file gets automatically created when you build your project.)
  • Regsvr32.exe (This file comes with Visual FoxPro 5.0 and a number of other Microsoft applications. Regsvr32.exe is included with Windows 2000, Windows XP, and Windows Server 2003. )
Once you copy these two files (.dll and .vbr) into the target machine, fromthe directory that contains these two files, type the command below at theMS-DOS prompt
REGSVR32 OLEServer.dll						
You should get a message box that says "DllRegisterServer in OLEServer.dllsucceeded." Your .dll file is now registered.

Note Manually registering these files is necessary only if you are notusing 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.
Properties

Article ID: 156547 - Last Review: 02/16/2005 06:48:58 - Revision: 3.4

Microsoft Visual FoxPro 5.0 Standard Edition, Microsoft Visual FoxPro 6.0 Professional Edition, Microsoft Visual FoxPro 7.0 Professional Edition, Microsoft Visual FoxPro 8.0 Professional Edition, Microsoft Visual FoxPro 9.0 Professional Edition

  • kb3rdparty kbautomation kbhowto kbinterop KB156547
Feedback
.name='ms.dqp0';m.content='true';document.getElementsByTagName('head')[0].appendChild(m);" onload="var m=document.createElement('meta');m.name='ms.dqp0';m.content='false';document.getElementsByTagName('head')[0].appendChild(m);" src="http://c1.microsoft.com/c.gif?"> /html>>