我想打电话叫从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