Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to find out the COM object name
Message
 
 
À
01/06/2003 21:26:18
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00795045
Message ID:
00795047
Vues:
15
Bernard,

If you drop one of them on a form you can look at the OLEClass property on the property sheet.

>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?
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform