Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for QueryInterface problem in Lazarus #6

Open
GoogleCodeExporter opened this issue Apr 29, 2015 · 0 comments
Open

Fix for QueryInterface problem in Lazarus #6

GoogleCodeExporter opened this issue Apr 29, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

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 marc...@gmail.com on 4 Aug 2014 at 6:17

Attachments:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant