Re: Cannot use 'call_back' for a procedure

new topic     » goto parent     » topic index » view thread      » older message » newer message

Finally solved it:

I decided not to trust the FreeImage documentation which says it uses stdcall conventions. I tried cdecl conventions and the error handler returned to me! I used:

c_proc(xfiSetOutputMessage,{call_back({'+',routine_id("FreeImageErrorHandler")})}) 


I assume that the other calls to FreeImage must use stdcall or else nothing would work. So this must be something that the FreeImage writers let slip by.

Arthur

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu