Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Accessing object from C DLL
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00580542
Message ID:
00580933
Vues:
32
This message has been marked as a message which has helped to the initial question of the thread.
Hi,

>Here is C declaration:
>hres = CoCreateInstance(CLSID_ShellLink, NULL, CLSCTX_INPROC_SERVER,
>IID_IShellLink, (PVOID *)&psl);
>...
>psl->Release()

In VFP it should be:
#define CLSID_ShellLink "{11219420-1768-11D1-95BE-00609797EA4F}"
sl = CreateObjectEx(CLSID_ShellLink, "")
...
Release sl
But it returns for me "Class not registered"

>However, VFP can not access object this way. What would be alternative suggestions?

VFP6 can not, VFP7 AFAIK can work directly with COM interfaces.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform