I'm writing a script that converts a C/C++ header file to AHK functions that wrap the DllCalls. For example, it would take this:
Code: Select all
extern "C" __declspec(dllexport) int add(int x, int y);
Code: Select all
add(x, y)
{
return DllCall("myDLL.dll/add", "int", x, "int", y, "Cdecl int")
}
PS: I think a script like this would help newbies and pros alike, and I'm cool with doing it on my own, but it's a big project (especially when you get into pre-processor directives, typedefs etc. that can affect the compiled DLL). So if you like this idea, I'd be glad to team up on this.