【发布时间】:2014-04-20 16:18:34
【问题描述】:
我正在创建 D3D 光标,所以首先我制作了 Surface & Texture。 这样做,我在 GetSurfaceLevel() 函数上遇到了错误。
0x5B494B11 处未处理的异常 0xC0000005:访问冲突读取位置0x00000000。
代码:
D3DXCreateTextureFromFile( g_D3dDevice, L"cursor1.bmp", &g_cursortex );
g_cursortex->GetSurfaceLevel( 0, &g_surfcursor );
g_D3dDevice->SetCursorProperties( 0, 0, g_surfcursor );
g_D3dDevice->ShowCursor( TRUE );
我该怎么办?
【问题讨论】: