delphistompclient icon indicating copy to clipboard operation
delphistompclient copied to clipboard

Fix for QueryInterface problem in Lazarus

Open GoogleCodeExporter opened this issue 9 years ago • 0 comments

What steps will reproduce the problem?

1. Unable to load library in Lazarus due to bad definition of QueryInterface

 function QueryInterface(const IID: TGUID; out Obj)

to make the function cross compiler - you can use the following declaration. 


    function QueryInterface({$IFDEF FPC_HAS_CONSTREF}constref{$ELSE}const{$ENDIF} iid : tguid;out obj) : longint;{$IFNDEF WINDOWS}cdecl{$ELSE}stdcall{$ENDIF};

Attached are the files 

Original issue reported on code.google.com by [email protected] on 4 Aug 2014 at 6:17

Attachments:

GoogleCodeExporter avatar Apr 29 '15 15:04 GoogleCodeExporter