Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to find out the COM object name
Message
De
01/06/2003 21:26:18
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
How to find out the COM object name
Divers
Thread ID:
00795045
Message ID:
00795045
Vues:
53
I need help in finding the name of a COM object.

For instance if I need to use the CDO object in WIn2k I use:

oMsg = CREATEOBJECT("CDO.Message")


and to use the windows Scripting :

oWshFile = CREATEOBJECT("Scripting.FileSystemObject")

But how exactly do I find out that I am to use "CDO.Message" or "Scripting.FileSystemObject"?

Specifically the "CDO" and "Scripting" part when I want to use COM libraries.
For instance when I open the Object browser in VFP and select the COM tab, I see all these COM servers(?) listed with events, methods, properties etc.

But I can see nowhere the name that I can use in my CREATEOBJECT(cClass) statement.

So, how exactly do I get this information from a COM server so that I can use it in a VFP application.

IN VB all that is needed is to include a reference to it in my project and use the name displayed there.

In VFP is it guesswork or is there some way of finding out?

Thanks

Bernard
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform