Re: Cannot use 'call_back' for a procedure
- Posted by ArthurCrump Aug 31, 2010
- 1072 views
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