This optimization seems to work only for DLLs loaded by AHK but not for DLLs loaded per DllCall("LoadLibrary", ...) within the script. A #DllLoad directive evaluated before the expression parser is called should solve this problem. Also, missing DLLs could be detected at load-time.The docs wrote: DllCall()
[AHK_L 31+]: If DllCall's first parameter is a literal string such as "MulDiv" and the DLL containing the function is ordinarily loaded before the script starts, the string is automatically resolved to a function address. This built-in optimization is more effective than the example shown above.
Propose new features and changes
2 posts • Page 1 of 1
Who is online
Users browsing this forum: No registered users and 4 guests