Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How can I register a COM object?
Message
From
06/11/2001 17:28:24
 
 
To
06/11/2001 17:22:59
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00578255
Message ID:
00578257
Views:
17
Copy the DLL and the TLB onto the target machine, then in a DOS window:

REGSVR32 MyCOM.DLL


>Hi,
>
>Let's say I have a project called "MyProject" with an OLEPUBLIC class in it called "MyOleClass". After building this project, I can use the "createobject" method to instantiate a "MyOleClass" object.
>
>When I distribute a project using a "MyOleClass" object, what are the steps to make my COM component accessible?
>
>I.E. If, in another project, I use the lines:
>
>PUBLIC goMyObject
>goMyObject = CREATEOBJECT("MyProject.MyOleClass")
>
>I get a "... class definition not found..." error! What do I need to do to register my "MyProject" project and hence, my "MyOleClass" class?
>
>Thanks a lot, Stephane.
>
>
>P.S. I used WINNT as a developpement environment but the target OS (where I wish to install my project) is Win98.
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform