打开rc文件时出现“SYMBOL name too long”错误
来源:互联网 发布:ps软件怎么安装 编辑:程序博客网 时间:2024/05/29 13:05
在网上搜索了一下,发现以下解决方法:
引文:
网上下了一个VC2008的源码,用VS2008打开,查看资源的时候报错:rcxdti.dll is unable to load rcxdtiui.dllYou may be unable to edit Win32 Resourses.这个错误让我坠入云里雾里rcxdti.dll和rcxdtiui.dll我的系统中有,且位置正确,为什么会不能加载呢?后来查询之后,发现VS2008的一个bug,就是VC的配置路径的问题:To fix the problem, I made a minor change to the include paths in the IDE.Tools -> Options -> Projects and Solutions -> VC++ DirectoriesShow directories for: Include filesI Added a slash to my last path, so "P:/" became "P://". Ok the changes and the problem went away. :-)这里答复指明一个关键所在,就是VC的配置路径有点问题,但这个方法并不完全正确,其实是多了一个/,而不是少了,我把 VC++ Directories中所有Include files的路径后面的/去掉之后,错误提示信息更明确化了C:/Program Files/Microsoft SDKs/Windows/v6.0A//Include/PrSht.h(0)error RC2247 : SYMBOL name too long注意这里的//,这说明include files的路径仍有问题查看include files$(WindowsSdkDir)/include ---这里多了一个/,其实$(WindowsSdkDir)是会在后面带一个/的,所以这里的/是多余的。把这个斜杠去掉,还是没有解决问题,但是提示的信息更明确了,从RC2247的错误查到了最终的解决方法:这个是rc文件配置的问题,从旧版本的VS工程转为2008时,aps文件不见了所以在rc的文件头开始处添加(当然是在#include "resource.h"下面了):#define APSTUDIO_HIDDEN_SYMBOLS#include "windows.h"#include "prsht.h"#include "wtypes.h"#undef APSTUDIO_HIDDEN_SYMBOLS然后注释掉://#define APSTUDIO_READONLY_SYMBOLS保存后重新打开sln,资源可以用了!!!aps文件也有了!!!问题解决了!!!
我用查看代码的方式查看rc文件,发现没有
<pre name="code" class="plain"><pre name="code" class="plain">#define APSTUDIO_HIDDEN_SYMBOLS...
#undef APSTUDIO_HIDDEN_SYMBOLS
这些代码,于是手工在rc文件中加上一句:
#define APSTUDIO_HIDDEN_SYMBOLSOK。解决文题。
原文地址:http://blog.csdn.net/andoring/article/details/6433895
0 0
- 打开rc文件时出现“SYMBOL name too long”错误
- vs2013 编辑资源文件报 RC2247 : SYMBOL name too long
- 编译出现File name too long问题
- index name too long
- AIX创建用户提示错误:name is too long
- MySQL插入中文时出现ERROR 1406 (22001): Data too long for column 'name' at row 1
- MySQL插入中文时出现ERROR 1406 (22001): Data too long for column 'name' at row 1
- 编译Android时出现make: execvp: /bin/bash: Argument list too long错误
- Linux下出现 “Argument list too long”错误的解决
- 编译内核出现fatal error:XX File name too long的问题
- mysql 数据库 错误 Data truncation: Data too long for column 'name' at row 1
- jdbc 连mysql 时报 Data too long for column 'name' at row 1 错误
- wget报File name too long
- git pull file name too long
- Argument list too long错误
- 致命错误 RC1015: 无法打开包含文件 'l.chsafxres.rc'
- 错误 RC1015: 无法打开包含文件 'XTToolkitPro.rc'
- 动态链接时出现undefined symbol错误
- hdu 3545 Flow Problem 最大流模板题 EK+Dinic算法两种代码AC
- session
- 程序猿的健康之路
- masscan查找真实IP
- XUtils开源框架学习
- 打开rc文件时出现“SYMBOL name too long”错误
- arm qt5 x11 libxcb
- Android中的“再按一次返回键退出程序”实现
- 5.2 Nesting
- 湖北省再度出资2000万 扶持大学生创业
- LeetCode --- 104. Maximum Depth of Binary Tree
- Windows 下编程检测显示器信息及插拔
- Java网络编程从入门到精通(5):使用InetAddress类的getHostName方法获得域名
- 浏览器定位原理与实现