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:57:23
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00795045
Message ID:
00795052
Vues:
15
Hi David

By "Drop one of them on a form" do you mean add it as an OLE using the OLE container or just use file manager to drag and drop?

Also I always thought that only ACTIVEX (OCX) COM's could be added this way.

For instance, will this work with the CDO object I mentioned in my post?

>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?
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform