vs2010 debug afxwin1.inl错误

来源:互联网 发布:淘宝服装简介怎么写 编辑:程序博客网 时间:2024/05/22 08:26

最近编译Deform2d, 编译出来的结果debug有错误, 显示afxwin1.inl错误



但release就可以。


另外, 我的硬盘里也根本没有这个目录。


后来google之, 发现, 原因在于, windwos打开文件的时候需要初始化一个东西。 把这两行语句添加到CFileDialog之前就好了。


if(!AfxWinInit(::GetModuleHandle(NULL), NULL, ::GetCommandLine(), 0)){return;}

over。

0 0
原创粉丝点击