一个很菜的问题, 同是dword类型的变量为什么不能用mov指令传值??
在学习Win32汇编时尝试用mov指令传递句柄编译报错了这是为什么??如我在数据段定义了一个 :
hInstance dword ?
然后在代码段把hInstance用mov指令传递到WNDCLASSEX类型变量stWndClass的hInstance属性编译时报错:
mov stWndClass.hInstance, hInstance
stWndClass.hInstance和hInstance两个都是dword类型什么为不能用mov传递值呢? 改成下面的方式传递值就可以通过编译
push hInstance
pop stWndClass.hInstance
![](images/smilies/emot/em03.gif)