无法在VC ++ 6中加载工作空间

时间:2021-01-28 23:12:37

I have copied a project to a new directory, and now the workspace will not load into the vc++6 ide. There is no error, just no workspace. I have diff'ed the dsw and dsp files, and they are the same.

我已将项目复制到新目录,现在工作区将不会加载到vc ++ 6 ide中。没有错误,只有没有工作空间。我已经对dsw和dsp文件进行了差异化,它们是相同的。

3 个解决方案

#1


Well, this is really annoying. The problem turned out to be a CRLF->LF problem in the dsw workspace file. Git had removed CR's and the diff inside of notepad++ showed identical files. Add back the CR's and the workspace now loads into VC6.

嗯,这真的很烦人。问题结果是dsw工作区文件中的CRLF-> LF问题。 Git已经删除了CR,而notepad ++中的diff显示了相同的文件。添加CR并将工作空间加载到VC6中。

#2


Check in the project and solution files with a text editor for any paths that point to files that cannot be found - maybe there is a relative or absolute path that cannot be found?

使用文本编辑器检查项目和解决方案文件,查找指向无法找到的文件的任何路径 - 可能存在无法找到的相对路径或绝对路径?

#3


This problem came up when moving from ide-based development to command-line builds and then back to ide. The dsw and dsp files need to be newer than the source, or else the workspace will refuse to load. Just open the files in a text editor and save them without changes, or use touch.exe, which can be had in UnxUtils from sourceforge.

当从基于ide的开发转移到命令行构建然后再转回到ide时,出现了这个问题。 dsw和dsp文件需要比源更新,否则工作空间将拒绝加载。只需在文本编辑器中打开文件并保存它们而不进行更改,或使用touch.exe,这可以从sourceforge的UnxUtils中获得。

#1


Well, this is really annoying. The problem turned out to be a CRLF->LF problem in the dsw workspace file. Git had removed CR's and the diff inside of notepad++ showed identical files. Add back the CR's and the workspace now loads into VC6.

嗯,这真的很烦人。问题结果是dsw工作区文件中的CRLF-> LF问题。 Git已经删除了CR,而notepad ++中的diff显示了相同的文件。添加CR并将工作空间加载到VC6中。

#2


Check in the project and solution files with a text editor for any paths that point to files that cannot be found - maybe there is a relative or absolute path that cannot be found?

使用文本编辑器检查项目和解决方案文件,查找指向无法找到的文件的任何路径 - 可能存在无法找到的相对路径或绝对路径?

#3


This problem came up when moving from ide-based development to command-line builds and then back to ide. The dsw and dsp files need to be newer than the source, or else the workspace will refuse to load. Just open the files in a text editor and save them without changes, or use touch.exe, which can be had in UnxUtils from sourceforge.

当从基于ide的开发转移到命令行构建然后再转回到ide时,出现了这个问题。 dsw和dsp文件需要比源更新,否则工作空间将拒绝加载。只需在文本编辑器中打开文件并保存它们而不进行更改,或使用touch.exe,这可以从sourceforge的UnxUtils中获得。