Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Accessing object from C DLL
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Accessing object from C DLL
Miscellaneous
Thread ID:
00580542
Message ID:
00580542
Views:
66
Hi everybody,

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

Here is VFP attempt of declaration:

declare integer CoCreateInstance in Ole32.dll as CoCreateInstance;
string CLSID, string ParentStruct, integer Context,string IID, integer @iShellLink

lnRes = CoCreateInstance(cCLSID, oNULL, CLSCTX_INPROC_SERVER,;
cIID, @oIShellLink)
...
oIShellLink.Release()

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

(This is not for me, but for somebody from VFP Russian Club).
If it's not broken, fix it until it is.


My Blog
Next
Reply
Map
View

Click here to load this message in the networking platform