摘要:VS2003并不官方支持Win7,目前大家遇到的主要是两个问题:1. 在debug的时候,*.pdb文件在会被devenv.exe给lock住,当调适过一次之后,再进行编译的时候会有lnk1201的链接错误,说对*.pdb没有写权限,只有重启VS;2. 在进行全局搜索的时候(至少当前文件搜索没问题),整个VS2003就没有反应了,只能强行退出。解决办法:1. 这个没有简单的办法或者设置可以解决,网上已有的比较靠谱的就是用Windows Sysinternals的工具Handle(下载地址)。 首先下载Handle.exe, 然后将如下脚本保存为freepdb.bat@echo offcd /.
阅读全文
摘要:Issue:error MSB6006: "mt.exe" exited with code 31Solution:project options, linker, manifest, Generate Manifest-> NO.Link:http://connect.microsoft.com/VisualStudio/feedback/details/682867/error-msb6006-mt-exe-exited-with-code-31
阅读全文
摘要:Issue:编译一个InDesign CS6 Plug-in,用到boost时遇到如下编译错误:WinSock.h has already been included原因是Windows 有WinSock.h和WinSock2.h两个版本,windows.h默认include的是WinSock.h。而InDesign CS6 SDK 里用的1.44版本的boost要求WinSock2.h.Solution:1. 在一般的C++ project 中可以通过定义宏WIN32_LEAN_AND_MEAN 来解决,或者在#include <windows.h>之前加入#include &l
阅读全文
摘要:Issue:我的project 的prebuild里用到了一个自己写的exe,之前用在VS2005和08中都没有问题,在升级到VS10后,在一台win7出现如下编译错误:Error 1 error MSB3073: The command "my.exe:VCEnd" exited with code 14001The application has failed to start because the side by side configuration is incorrect please see the application event log or use t
阅读全文
摘要:命令提示符及批处理下字符串的最大长度:Microsoft Windows XP 或更高版本 : 8191 个字符。Microsoft Windows 2000 或 Windows NT 4.0 : 2047个字符。Solution:将参数放在文本文件中Link:http://support.microsoft.com/kb/830473
阅读全文