那位仁兄!!帮帮我!!
我在vc6.0英文版中插入了一段汇编,如下:
_asm{
mov edx,lParam
mov eax,[edx]
cmp eax,WM_KEYDOWN ;是键盘按下?
jnz keyend
mov eax,[edx].paramL ;送信息给主窗口
mov edx,[edx].paramH
//错误行
call PostMessageA ,dd ptr hMainWin,WM_MYMSG,eax,edx
keyend: call CallNextHookEx, hHook,nCode,wParam,lParam
}
编译后,vc给我如下错误:
hookdll.cpp(57) : error C2408: illegal type on PTR operator in 'second operand'
hookdll.cpp(58) : error C2414: illegal number of operands
hookdll.cpp(58) : error C2404: 'lParam' : illegal register in 'third operand'
hookdll.cpp(59) : error C2414: illegal number of operands
我不知道错了哪里?帮帮我!!