标签: c++ delphi translate
LPVOID lpMyVar; *(LPWORD)lpMyVar = 0xF9EB;
我尝试了几种方法,但无济于事。如果有人可以帮助我。提前谢谢!
答案 0 :(得分:5)
type PDWORD = ^DWORD; var lpMyVar: Pointer; PDWORD(lpMyVar)^ := $F9EB;
但是将lpMyVar声明为类型指针可能更好:
lpMyVar
var lpMyVar: ^DWORD; lpMyVar^ := $F9EB;