vs学习过程中遇见的各种问题
1. argument to type "char *"is incompatible with parameter of type "LPWSTR"
解决:Project->Properties->Configuration Properties->General->Character set->use Multi-Byte Character Set
2. 'LoadLibraryW' cannot convert parameter 1 from 'const char[]' to 'LPCWSTR' Types pointed to are unrelated; conversion requires reinterpret_cast,C-style cast or function-style case
解决方法:同上
3. Release编译设置
Project->Properties->Configuration Properties->General->Use of MFC->use MFC in a Static Library
4. declaration is incompatible with就是在申明函数库那里很多函数标红,显示和定义不符
解决:把头文件位置换一下
5. 出现错误My_lame\My_lame\Release\lame_enc.dll:fatal error LNK1107:invalid or corrupt file:cannot read at 0x278
导致错误的原因:在写将WAV格式视频压缩成MP3格式代码的时候,设置Project->Properties->Configuration Properties->Linker->Input->Additional Dependencies时添加了lame_enc.dll。实际上这一栏是添加LIB文件的。所以不应该改变。
6. precompiled header file is from a previous version of the compiler,or the precompiler header is c++ and you are using it from c(or vice verse)
导致错误的原因:在编程的原文件夹中加入BladeMP3EncDLL.c及.h .def文件就好,而在vs2010中右边的Solution Explorer的 header files source files不需要添加。
最新文章
- [LeetCode] Insert Delete GetRandom O(1) 常数时间内插入删除和获得随机数
- neo4j初次使用学习简单操作-cypher语言使用
- bind原理 附带上自己的一些理解 (引自javascript设计模式和与看法实践)
- android HorizontalScrollView
- 解决java.lang.NoClassDefFoundError: org/apache/log4j/Level
- 基础_ _返回键back
- 2.Android之按钮Button和编辑框EditText学习
- HDU 4910 Problem about GCD 找规律+大素数判断+分解因子
- -(UIView *)hitTest:(CGPoint)point withEvent:(UIEvent *)event
- SOCKET 地址
- 二叉查找树的查找、插入和删除 - Java实现
- ArrayList中元素去重问题
- DataGridView 绑定数据后修改列类型
- MS-SQL数据库备份方法
- 最受欢迎web前端技术总结
- ubuntu 15.10 设置静态ip 分配固定ip 设置dns 设置网关 命令行配置ip 固定ip不生效怎么办
- Python入门基础之变量和数据类型
- Tomcat 9.0 安装配置
- perl 读写文件
- [转]devm_gpiod_get_optional用法