|
LPDIRECTDRAW7 lpdd;
if(FAILED(DirectDrawCreate(NULL,(LPDIRECTDRAW *)&lpdd,NULL)))
{
MessageBox("Error~");
}
lpdd->SetDisplayMode(1280,1024,32,0,0);
为什么调用该函数以后会出现下面的中断
Run-Time Check Failure #0 - The value of ESP was not properly saved across a function call. This is usually a result of calling a function declared with one calling convention with a function pointer declared with a different calling convention |
|