解决debug时AfxGetInstanceHandle()报debug Assert Failed错误
来源:互联网 发布:易语言管理系统源码 编辑:程序博客网 时间:2024/06/10 14:50
if (!AfxWinInit(::GetModuleHandle(NULL), NULL, ::GetCommandLine(), 0))
{
// TODO: change error code to suit your needs
_tprintf(_T("Fatal Error: MFC initialization failed/n"));
}//解决Win32调用程序GetModuleFileName会在Degug崩溃的错误;加上就不会debug时候AfxGetInstanceHandle()有那个debug Assert Failed错误
char path[_MAX_PATH];
GetModuleFileName(NULL,path,_MAX_PATH);
string strFile;
strFile = path;
int k = strFile.rfind('//');
string strpath = strFile.substr(0,k);
- 解决debug时AfxGetInstanceHandle()报debug Assert Failed错误
- VS2010 Debug Assert Failed 备忘
- 错误:Debug assertion failed
- 切换视时基于FormView的对话框属性设置与ASSERT报错的问题 (Debug Assertion Failed!)
- 切换视时基于FormView的对话框属性设置与ASSERT报错的问题 (Debug Assertion Failed!)
- Debug assertion failed! ASSERT(FALSE) VC
- Debug Assertion Failed!断言报错的解决
- vc6.0 中Debug assertion failed的错误解决
- vc 错误:Debug Assertion Failed
- Debug Assertion Failed 错误定位
- Debug Assertion Failed! 错误解析
- 抛出错误Debug Assertion Failed!
- Debug Assertion Failed解决思路
- 解决 BCGControlBar Debug 报错
- BCGControlBar Debug报错解决
- VS2013项目 中,调试出现Debug Assert Failed!
- VS2012项目 中,调试出现Debug Assert Failed!
- 解决导出的MFC扩展动态库在调用时出现Debug Assertion Failed错误的问题
- ASCII
- C#调用C++写的dll,C++调用C++的dll
- 技术的不断革新也有负面影响
- RM/RMVB文件格式总结
- C#4.0中的新功能:协变性和逆变性
- 解决debug时AfxGetInstanceHandle()报debug Assert Failed错误
- 使用removeItemWidget时, UI不刷新的问题
- 终止检测
- Qt做启动界面
- Qt标准对话框之QMessageBox (转载)
- 获得程序所在路径
- QT编程学习笔记
- 转载 》在QListWidget的item上实现右键菜单
- MyEclipse 6.5 中svn插件的安装