Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Accessing object from C DLL
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00580542
Message ID:
00580933
Views:
27
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.
Previous
Reply
Map
View

Click here to load this message in the networking platform