We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
VarSetCapacity is no longer available in ahk v2.0 release, replaced by Buffer() according to the document.
The text was updated successfully, but these errors were encountered:
example
Gdip_Startup() { Ptr := A_PtrSize ? "UPtr" : "UInt" pToken := 0 if !DllCall("GetModuleHandle", "str", "gdiplus", Ptr) DllCall("LoadLibrary", "str", "gdiplus") VarSetCapacity(si, A_PtrSize = 8 ? 24 : 16, 0), si := Chr(1) DllCall("gdiplus\GdiplusStartup", A_PtrSize ? "UPtr*" : "uint*", pToken, Ptr, &si, Ptr, 0) return pToken }
replace
Gdip_Startup() { Ptr := A_PtrSize ? "UPtr" : "UInt" pToken := 0 if !DllCall("GetModuleHandle", "str", "gdiplus", Ptr) DllCall("LoadLibrary", "str", "gdiplus") ;VarSetCapacity(si, A_PtrSize = 8 ? 24 : 16, 0), si := Chr(1) si := Buffer(A_PtrSize = 8 ? 24 : 16, 0) NumPut("int", 1, si.Ptr) DllCall("gdiplus\GdiplusStartup", A_PtrSize ? "UPtr*" : "uint*", &pToken, Ptr, si.Ptr, Ptr, 0) return pToken }
Sorry, something went wrong.
The problem is that this library was meant to be backwards compatible to work on both v1 and v2...
No branches or pull requests
VarSetCapacity is no longer available in ahk v2.0 release, replaced by Buffer() according to the document.
The text was updated successfully, but these errors were encountered: