Hello. Sorry for the english but i dont have response for this question :
http://www.purebasic.fr/english/viewtopic.php?t=25336
I thank you all for your help.
ptr question
srod hat geschrieben: ii) Check the calling convention of the library. Your code above is assumning the STDCALL convention, which is fine for Windows system dll's etc. If the library "toto.dll" is a typical 'c' library then you'll probably need to use the CDECL convention. For this use CallCFunction() in place of CallFunction() etc.
thanks, but
Thanks, but this is not the solution. The problem was that all the operation executed on the procedure works : i can see the data returned by the dll. But i have error on the end of the procedure.
Do i have to release the handle ????
Do i have to release the handle ????
-
- Beiträge: 17389
- Registriert: 10.11.2004 03:22
solution
In fact there is a bug on my use of the dll (because of poor dll doc)
i have to write this
CallFunction( 0, "dll_Close",Handle)
in place of
CallFunction( 0, "dll_Close")
thanks to you (and to a delphi forum were the dll was implemented)
i have to write this
CallFunction( 0, "dll_Close",Handle)
in place of
CallFunction( 0, "dll_Close")
thanks to you (and to a delphi forum were the dll was implemented)