Yorgo Posted February 21, 2018 Posted February 21, 2018 Hi there, has anyone gotten libftdi1.dll working with autoit yet? while calling "ftdi_new" seems to work, autoit crashes upon calling "ftdi_init" code (validity checks removed for simplicity/readability...): Local $hDll, $aRet, $pCntx $hDll = DllOpen("libftdi1.dll") $aRet = DllCall($hDll, "ptr", "ftdi_new") $pCntx = $aRet[0] $aRet = DllCall($hDll, "int", "ftdi_init", "ptr", $pCntx) <<--- here autoit.exe crashes note: this is the 32bit version of ftdi1.dll running in 64bit Windows 10 (the script uses another dll where I only have the 32 bit variant...)
Danyfirex Posted February 21, 2018 Posted February 21, 2018 Hello try to check api call method. maybe It use cdecl Saludos Danysys.com AutoIt... UDFs: VirusTotal API 2.0 UDF - libZPlay UDF - Apps: Guitar Tab Tester - VirusTotal Hash Checker Examples: Text-to-Speech ISpVoice Interface - Get installed applications - Enable/Disable Network connection PrintHookProc - WINTRUST - Mute Microphone Level - Get Connected NetWorks - Create NetWork Connection ShortCut
Yorgo Posted February 22, 2018 Author Posted February 22, 2018 Hello, well, no - it actually is the x86 version of that libftdi1.dll running under 64bit Windows 10 that crashes AutoIt - the 64bit version seems to work; I haven't really checked that, but at least ftdi_init() and a few more return success and do not crash AutoIt anymore! Now the big question: where do I get the 64bit Version of commg.dll from? - this is at the moment the blocking point that enforces me to use 32 bit DLLs (commg.dll is a dll for serial communication of UART - I need to be in full control of port settings such as baudrate - and have not found any other solution for that yet)
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