| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 749 人关注过本帖
标题:DX编程问题,directx exception.关于错误调试
只看楼主 加入收藏
speedend2003
Rank: 1
等 级:新手上路
帖 子:1
专家分:0
注 册:2007-8-24
收藏
 问题点数:0 回复次数:0 
DX编程问题,directx exception.关于错误调试

图片附件: 游客没有浏览图片的权限,请 登录注册

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));

\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
\\\!~!~哪位可以帮忙解决心中的疑惑??死等~!~!\\\
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
搜索更多相关主题的帖子: exception directx 调试 
2007-08-24 15:16
快速回复:DX编程问题,directx exception.关于错误调试
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.034783 second(s), 9 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved