Getting an error RC2188 (Visual Studio 2005, C++)

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.



Answer this question

Getting an error RC2188 (Visual Studio 2005, C++)

  • MarkDu

    Ian Daysh wrote:
    I implemented the Automatic Build Number Increasing Macro as found here.
    Did you see Modify by LS4004 in VS2005 It seems relevant. The code seems to have been messed up by the conversion of CodeGuru software but hopefully it is still useful. That comment indicates it is for VS 2005. Whether that works or not, you should post another comment for that article describing the problem at least. Perhaps you should make the subject of the comment something like the subject for this thread, so it is more likely that people will notice that the code can cause a RC2188.

  • 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 VS2005

  • Elham 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

    Found those myself as well. Thing is tho the project is a pure bred VC8 one. I'm not using the libraries that's being mentioned in the links. Any libraries that weren't ISO standard before VC8, I've used the ISO standard variant.

    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.

  • Getting an error RC2188 (Visual Studio 2005, C++)