Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How can I register a COM object?
Message
 
 
To
07/11/2001 09:43:29
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00578255
Message ID:
00578497
Views:
14
>>>>Copy the DLL and the TLB onto the target machine, then in a DOS window:
>>>>
>>>>REGSVR32 MyCOM.DLL
>>>>
>>>Thanks for the quick response Greg.
>>>
>>>I knew about the regsvr32 program but it doesn't work (Bad command or file name). Remember that I am under Windows 98...
>>>
>>>Stephane.
>>
>>If it's not a dev machine as well, make sure the vfp run-times are on the 98 machine. (\windows\system directory on 98, if I remember correctly...)
>>
>>If they are and the dll is built as a multi-threaded dll, make sure the vfp6t.dll is there as well.
>
>Everything seems in order. I had to copy the regsvr32 program in the windows/system directory and adjust my PATH variable but other than that, regsvr32 is now working.
>
>Now that I am able to run it, I get an error from regsvr32 that it is unable to load the library. What am I (again) doing wrong?
>
>Btw, you are all talking about DLL's but my COM object is compiled as an EXE, is this a problem?
>

Stephane,
Yes it is. ;-)

Instead of using Regsvr32, use the EXE itslef. VFP COM exes have that functionality with command-line parameters. Try the following:

MyVFPEXE /regserver

To unregister it:

MyVFPEXE /unregserver

HTH.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Previous
Reply
Map
View

Click here to load this message in the networking platform