用嵌入汇编调用MessageBox,结果一运行就崩溃
#include "stdafx.h"
char c[]="caption";
char t[]="text";
int APIENTRY _tWinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPTSTR lpCmdLine,
int nCmdShow)
{
__asm{
push MB_OK
lea si,c
push si
lea si,t
push si
push NULL
call dword ptr MessageBoxA
}
return 0;
}
参数入栈的时候我是从右往左啊。
问题出在哪里呢?
谢谢!
...全文


