Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
COM object in VFP
Message
From
25/07/2007 05:19:15
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
COM object in VFP
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01243400
Message ID:
01243400
Views:
70
Hi at all,

I am new in using com objects, I have the following example code in Visual Basic and Delphi how can I transform in VFP using GETINTERFACE ?

This the example in Visual Basic
Public Function Init(Application As TTopoLKernel) As Long
Set TLVBKernel = Application
End Function


This the example in Delphi
function TExampleDB.Init(const topolKernel: IUnknown): HResult;
begin
topolKernel.QueryInterface(ITopoLKernel, fTopoL);
Result := S_OK;
end;

I try this in VFP but does not works.

PROCEDURE Init [Appl as Variant]
TopoLKernel = GETINTERFACE(Appl, "ITopoLKernel", "TLKernel.dll")
RETURN 1
ENDPROC

any idea

Thank you in advance

Luigi
Next
Reply
Map
View

Click here to load this message in the networking platform