Hello
I am trying to call 64 bit dll but for some reason I keep getting error 3 "function" not found in the DLL file
in dllmain.cpp I do have that function.
Does anyone know why autoit cant find that function?
I am trying to call 64 bit dll but for some reason I keep getting error 3 "function" not found in the DLL file
[ autoit ]
#Region ;**** Directives created by AutoIt3Wrapper_GUI **** #AutoIt3Wrapper_UseX64=y #EndRegion ;**** Directives created by AutoIt3Wrapper_GUI **** DllCall("pyclip.dll","int:cdecl","SomeFunction","str","abc") MsgBox(0,"",@error)
in dllmain.cpp I do have that function.
// dllmain.cpp : Defines the entry point for the DLL application. #include "stdafx.h" #define DLL_EXPORT __declspec(dllexport) int DLL_EXPORT SomeFunction(const LPCSTR sometext) { MessageBoxA(0, sometext, "DLL Message", MB_OK | MB_ICONINFORMATION); return 0; } BOOL APIENTRY DllMain( HMODULE hModule, DWORD ul_reason_for_call, LPVOID lpReserved ) { switch (ul_reason_for_call) { case DLL_PROCESS_ATTACH: case DLL_THREAD_ATTACH: case DLL_THREAD_DETACH: case DLL_PROCESS_DETACH: break; } return TRUE; }
Does anyone know why autoit cant find that function?