My resource file compiles correctly, but when I try to open it in VS, I get
the error, "cannot find include file". The file in question is a "constant
include". This is what it looks like in the rc file:
////////////////////////////////////////////////////////////////////////////
/
//
// Generated from the TEXTINCLUDE 2 resource.
//
#include "buildoptions.h"
#ifdef APSTUDIO_INVOKED
////////////////////////////////////////////////////////////////////////////
/
//
// TEXTINCLUDE
//
2 TEXTINCLUDE
BEGIN
"#include "buildoptions.h"\r\n"
"\0"
END
I know that I set the "additional resource include paths" correctly, since I
can see them as command-line parameters. I tried both, relative paths with
double dots, and relative w.r.t $(SolutionPath). Same problem. Here's the
excerpt from the vcproj file:
<Tool
Name="VCResourceCompilerTool"
PreprocessorDefinitions="NDEBUG"
Culture="1033"
AdditionalIncludeDirectories=""$(SolutionDir) WinLib";"$(Solut
ionDir)Common""/>
I repeat: the resource compiler has no problem compiling it. It's the
resource editor in VS that cannot find the file. This happens in a
subproject of a larger C++ solution.
Bartosz Milewski