delphistompclient
delphistompclient copied to clipboard
Fix for QueryInterface problem in Lazarus
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: