Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How can I tell if a COM object is running?
Message
From
05/06/2001 11:37:51
 
 
To
05/06/2001 11:28:44
Rex Mahel
Realm Software, Llc
Ohio, United States
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00515028
Message ID:
00515157
Views:
15
Hi!

>I thought that when you compiled the COM application into a DLL it automatically runs.
>
>Am I wrong?

Yes.

>If so, how to you create the COM object? I tried:
>
> goApp=CREATEOBJECT("ImpactCOM")
>
>It didn't work

If the project name is 'MyProj' and the class name is 'ImpactCOM', than DLL COM object call will look like following:

goApp = CreateObject("MyProj.ImpactCOM")

Than you can call its methods:

? goApp.SomeMethod()

When you want to use that DLL on another computer, you require to copy it there and use "REGSVR32 path\MyProj.DLL" command to register it, otherwise you will get the "Class not registered" error.

HTH.
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Previous
Reply
Map
View

Click here to load this message in the networking platform