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