CreateNewTexture():D3DXCreateTextureFromFileEx./images/skinchoose-3-1-3.png
DrectX Error String:D3DXERR_INVALLDDATA
c:\documents and settings\hoo\my documents\liancient\sourse\engine\texture.cpp
line 130
在执行的时候遇到个弹出对话警示
对应
if (FAILED(hr)) throw Error(_T("CreateNewTexture(): D3DXCreateTextureFromFileEx ")+ pathname,__FILE__,__LINE__,hr);
不知道什么原因
与skinchoose-3-1-3.png 有关的代码如下:
C_Lian::C_Lian():C_StateManager(INIT), m_subState(FLASH)
{
p_Lian = this;
p_Background = new C_Sprite(_T("GameBack.png"));
m_pSingleStartButton = new C_Button(_T("singlestart-3-1-3.png"));
m_pDoubleStartButton = new C_Button(_T("double-3-1-3.png"));
m_pList = new C_Button(_T("list-3-1-3.png"));
m_pHelp = new C_Button(_T("help-3-1-3.png"));
m_pExit = new C_Button(_T("exit-3-1-3.png"));
m_pProcessBack = new C_Sprite(_T("processback.png"));
m_pSkinChoose = new C_Button(_T("skinchoose-3-1-3.png"));
// m_pOperat = new C_Button(_T("operate-3-1-3.png"));
// m_pMin = new C_Button(_T("min-3-1-3.png"));
// m_pClose = new C_Button(_T("close-3-1-3.png"));
m_pSingleStartButton->SetTranslation(DVECTOR2(15, 110));
m_pDoubleStartButton->SetTranslation(DVECTOR2(15, 155));
m_pList->SetTranslation(DVECTOR2(15, 200));
// m_pOperat->SetTranslation(DVECTOR2(15, 240));
m_pSkinChoose->SetTranslation(DVECTOR2(15, 245));
m_pHelp->SetTranslation(DVECTOR2(15, 290));
m_pExit->SetTranslation(DVECTOR2(15, 335));
// m_pMin->SetTranslation(DVECTOR2(723, 6));
// m_pClose->SetTranslation(DVECTOR2(775, 6));
m_pHardBack = new C_Button(_T("hardback.png"));
m_pDoubleBack = new C_Button(_T("doubleback.png"));
m_pDefEasy = new C_Button(_T("defeasy-3-1-3.png"));
m_pDefNormal = new C_Button(_T("defnormal-3-1-3.png"));
m_pDefHard = new C_Button(_T("defhard-3-1-3.png"));
m_pHardBack->SetTranslation(XVECTOR2(130, 110));
m_pDoubleBack->SetTranslation(XVECTOR2(130, 156));
\\\!~!~哪位可以帮忙解决心中的疑惑??死等~!~!\\\
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\