![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
VisualStudio
tmy257
这个作者很懒,什么都没留下…
展开
-
resource.h(10): fatal error RC1004: unexpected end of file found
在VS2012里手动编写添加资源的程序时遇到了这个问题,据说是因为所编写的文本文件最后一行缺少换行符和回车符导致编译器编译不过去。 我的办法是:在最后一行敲一次换行键和回车键原创 2015-02-25 14:11:07 · 1607 阅读 · 0 评论 -
error LNK2019: 无法解析的外部符号 __imp__PlaySoundA@12,该符号在函数 _WndProc@16 中被引用 1>D:\GameProgram\chapter2\DEMO
解决: 方法 一:#pragma comment(lib, "winmm") 方法 二:菜单Project --> Settings...-->Link链接器-->INPUT输入-->Object/Library modules附加依赖项:中加入winmm.lib 原因: PlaySound ()在 mmsystem.h 中声明,链接时需要导入winmm.lib (原创 2015-02-25 13:36:32 · 1932 阅读 · 0 评论 -
error C4996: 'sprintf': This function or variable may be unsafe.Consider using sprintf_s instead.
一:直接使用微软推荐的修改后的函数sprintf_s, 其他类似的函数报错也同样亦可以选项Project | Configuration Properties | C/C++ | Preprocessor | Preprocessor Definitions 添加_CRT_SECURE_NO_WARNINGS原创 2015-02-26 15:56:01 · 7633 阅读 · 0 评论 -
Microsoft ADO Data Control,version 6.0(OLEDB) 不支持此接口
在VC6.0的环境下,当添加添加MS DataGrid控件(COM组件)时,回出现“ Microsoft ADO Data Control,version 6.0(OLEDB) 不支持此接口”的对话框,这时将Insert按钮左边的文件名的后缀.link去掉即可正常添加!原创 2015-03-26 22:29:53 · 2633 阅读 · 0 评论 -
error LNK2001: 无法解析的外部符号 _IID_IDirectDraw7
在做DirectX程序开发时,代码中有DirectDrawCreateEx(NULL, (void **)&lpdd, IID_IDirectDraw7, NULL)这一句,然后编译代码时,Link阶段出现“无法解析的外部符号 _IID_IDirectDraw7”的错误提示 确保加入了dxguid.lib这个库: #pragma comment (lib, "dxguid")原创 2015-03-10 09:18:58 · 3336 阅读 · 0 评论