Skip to content

Commit

Permalink
Add AHK Basic compatibility.
Browse files Browse the repository at this point in the history
  • Loading branch information
Uberi committed Feb 10, 2012
1 parent e005907 commit 452f06c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion en/_posts/2011-11-24-DllCalls.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ Rarely, DLLs may export variables in addition to functions; for example, the Ray
hModule := DllCall("LoadLibrary","Str","Raydium.dll")

;obtain the address of the variable "raydium_joy_x"
pJoystickX := DllCall("GetProcAddress","UPtr",hModule,"AStr","raydium_joy_x")
pJoystickX := DllCall("GetProcAddress",A_PtrSize ? "UPtr" : "UInt",hModule,A_IsUnicode ? "AStr" : "Str","raydium_joy_x")

;retrieve a float value from the address
JoyStickX := NumGet(pJoystickX + 0,0,"Float")
Expand Down

0 comments on commit 452f06c

Please sign in to comment.