我想打電話叫從AutoIt的3(最新版本)的通用言語是C樣式庫。 這個問題是,我從我打電話的功能獲得所需的行動,但在我得到響應後,autoit崩潰,說autoit已停止工作,Windows可以搜索解決方案... 我做錯了什麼?調用C風格的DLL成功,然後AutoIt的崩潰
的AutoIt:
#notrayicon
dllcall("UniversalSpeech.dll", "int", "speechSayA", "str", "test 123", "int", 1)
sleep(1000)
普遍speech.h:
#ifndef ____UNIVERSAL_SPEECH_H__
#define ____UNIVERSAL_SPEECH_H__
#if defined __WIN32 || defined __WIN64
#define export __declspec(dllexport)
#else
#error Platform currently unsupported
#endif
#ifdef __cplusplus
extern "C" {
#endif
int export speechSayA (const char* str, int interrupt) ;
#ifdef __cplusplus
} // extern "C"
#endif
#endif
我已經成功地做到這在其他編程語言,但AutoIt的似乎並不喜歡它。
請不要將「已解決」添加到問題中。你通過*回答*做了正確的事情(並且給定一段時間,你可以接受它)。 – usr2564301 2014-12-05 20:20:57