jlf Posted January 28, 2013 Share Posted January 28, 2013 (edited) Hi When I use DllCall function to call a 64bits dll, I encounter a strange behavior. If the dll has to receive a string in first parameter and a 'double' in second parameter, this 2nd one is NOT received by the called function. I have done some tests, and :x64 + string + double ==> double NOT receivedx64 + double ==> double succesfully receivedx86 + string + double ==> double succesfully receivedx86 + double ==> double succesfully received The test dll is compiled with MinGW32 (for x86 dll version) / MinGW64 (for x64 version). My objective is to use a DLL that is already compiled in x64 and having string+double+others parameters (in this order). Attached files are a simple example of what is ok/ko. Here's the result of what I get when running the test_double.au3 script:[font=courier new,courier,monospace]Result call_float__________ => MyFloatValue_ = 0.005000 call_float_filename_ => MyFloatValue_ = 0.005000 - filename = test call_double_________ => MyDoubleValue = 0.005000 call_double_filename => MyDoubleValue = 0.000000 - filename = test call_double_filename => MyDoubleValue = 0.000000 - filename = test[/font]As you can see, both last result report null value...Files :test_call.c : source code for the simple dllmakefile (rename it to .bat) test_double.au3 : script code to call dll & execute test_double_dll.7z : compiled DLL (if you cannot recompile C to DLL)Thanks in advance for your helpBest Regards_makefile_DLL_MinGW.txttest_call.ctest_double.au3test_double_dll.7z Edited January 28, 2013 by jlf Link to comment Share on other sites More sharing options...
trancexx Posted January 28, 2013 Share Posted January 28, 2013 This was a bug. I have posted about this recently. To get it right you should go with beta AutoIt. Sorry for the inconvenience. ♡♡♡ . eMyvnE Link to comment Share on other sites More sharing options...
jchd Posted January 28, 2013 Share Posted January 28, 2013 @jlf Please post a link pointing here or a short explanation as a followup to your thread in the frenchy forum. This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe hereRegExp tutorial: enough to get startedPCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta. SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now