dll - 如何从 Autohotkey 调用 Dll?
问题描述
我计划从 autohotkey 调用 c++ dll,但我无法让它工作。如果有人帮助我,非常感谢
这就是我所做并尝试过的,它返回 null
hModule := DllCall("LoadLibrary", "Str", "Captcha.dll", "Ptr")
CaptchaProc := DllCall("GetProcAddress", "Ptr", hModule, "AStr",
"CaptchaProc", "Ptr")
test := DllCall(CaptchaProc, "Str", "test.png", "Str*", out)
MsgBox, %out%
MsgBox, %test%
这是 captcha.dll 中的曝光部分
void CaptchaProc(char* path, char* output) {
Mat frame = imread(path), blob;
谢谢!