Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How can I tell if a COM object is running?
Message
 
 
À
05/06/2001 11:28:44
Rex Mahel
Realm Software, Llc
Ohio, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00515028
Message ID:
00515157
Vues:
16
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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform