Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Creating COM object
Message
De
07/01/2000 11:32:58
 
 
À
06/01/2000 23:36:20
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00314058
Message ID:
00314525
Vues:
25
>>Hi All,
>>
>>I'd like to create a COM object. It is the Component Categories Manager. The CLSID is {0002E005-0000-0000-C000-000000000046}. It is a component from comcat.dll.
>>
>
>To instanciate a COM object in VFP, you'll need to know its ProgID. You can search in the registry using the GUID that you have, and find the ProgID (in the format Server.Class. ONce you have that, you can create it using
>
>oCOM = CREATEOBJECT("Server.Class")

Another alternative would be to use the CLSID in CREATEOBJECTEX(), using the local machine's NetBIOS name as the second parameter.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform