Hi,
For some reason I'm getting an RC2188 error from the Resource Compiler when accessing the Resource View. There is no documentation for this error.
Situation is, I have an RC2 file with my version info in, which is not to be edited by Visual Studio. When the message comes up, it has the path to the RC2 file with a (6) after it. Presumably this is the line number which is
#error
this file is not editable by Microsoft Visual C++Anyone have any idea why this is now causing an error (has been working fine in this configuration for months)
Thanks in advance
Ian.

Getting an error RC2188 (Visual Studio 2005, C++)
MarkDu
dagjo
Yeah, I did notice the message that had the changes in it.
Turns out all I need to do is to delete the auto-generated #include of the rc2 file, then when I next try to view the Resource View, the line is auto-generated again and everything is working fine.
Maybe another bug in the IDE where teh project database has been corrupted
Ian.
Furrukh Baig
Right, think I've managed to solve it....
I implemented the Automatic Build Number Increasing Macro as found here. It's been working fine with no problem since before Chrismas.
Looking at the code for the resource file, it created an entry under the "Automatically created from 2 TEXTINCLUDE section" for the #include projectname.rc2. I commented this out, then the entry under 2 TEXTINCLUDE and it's fine. I've just replaced the 2 TEXTINCLUDE line, and it's still working.
Another one of the "undocumented features"
Ian.
jordan V
I had a similar problem even if I don't use the VS addin
I fixed by moving the rc2 include into the following #ifned:
#ifndef
APSTUDIO_INVOKED/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 3 resource.
//
#include
"res\myproject.rc2" // non-Microsoft Visual C++ edited resources/////////////////////////////////////////////////////////////////////////////
#endif
// not APSTUDIO_INVOKED
It was not the case before and it was impossible to open my resources in VS2005Elham Sarikhani
I searched the MSDN and on the MSDN Blogs tab are a couple of results. I don't know how helpful they are; they are written for VC 6. I did not get any results for anywhere else in the MSDN.
SGriffin's [MSFT] WebLog
SGriffin's [MSFT] WebLog : Building MFCMAPI With Visual Studio 6
Then I searched the internet and found MBR IT/.NET 247 : errors building 6.0 project in c++ .net on microsoft.public.dotnet.languages.vc. I don't understand it but it might have the answer for you.
kumarvk
My problem is only happening when I view the Resources View, with the tree view of my resources (dialogs, menus etc.)
Thanks for trying. Anyone else have an idea
Ian.