468,310 Members | 1,428 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,310 developers. It's quick & easy.

Problems with "additional resource include paths"

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="&quot;$(SolutionDir) WinLib&quot;;&quot;$(Solut
ionDir)Common&quot;"/>
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

Nov 16 '05 #1
0 1023

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

43 posts views Thread by steve | last post: by
2 posts views Thread by steve | last post: by
18 posts views Thread by Tuckers | last post: by
5 posts views Thread by Summercoolness | last post: by
1 post views Thread by ccon67 | last post: by
3 posts views Thread by mejpark | last post: by
reply views Thread by Teichintx | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.