Thread: MSVC++6 resource redefinition!

  1. #1
    Registered User Bajanine's Avatar
    Join Date
    Dec 2001
    Location
    The most peaks over 10,000 feet!
    Posts
    396

    Angry MSVC++6 resource redefinition!

    I am having a problem with MSVC++ 6. I wrote a small program, and then closed the workspace.

    When I reopened another ongoing win32 API project I received 2 errors that I don't understand:
    #1
    MS Visual c++
    c:\program files\...\vc98\MFC\include\afxres.h(164)
    WARNING RC4005: 'ID_FILE_OPEN' : redefinition.

    #2
    MS Visual c++
    c:\program files\...\script1.rc(33) error RC2104 undefined keyword or name IDM_FILE_OPEN

    Now, I don't understand why these errors all the sudden started popping up as I am 99% positive the source code is unchanged from yesterday when I had it compiling.

    Any ideas on how to fix this?
    Favorite Quote:

    >For that reason someone invented C++.
    BLASPHEMY! Begone from my C board, you foul lover of objects, before the gods of C cast you into the void as punishment for your weakness! There is no penance for saying such things in my presence. You are henceforth excommunicated. Never return to this house, filthy heretic!



  2. #2
    train spotter
    Join Date
    Aug 2001
    Location
    near a computer
    Posts
    3,868
    the first error error seems to say you have two definitions fro the same ID

    the second that you don't have one

    Note the M (for menu?) in the second ID#.

    Is it that you have changed the name of a menu item and need to do a full rebuild before MSVC catches up?

    Or mis-spelled the name of a menu item?

    Or trying to have two recorces of the same ID# or name on the same window/dialog?

    (these are the common causes of this error unless your network has gone flaky, but your file seem local)
    "Man alone suffers so excruciatingly in the world that he was compelled to invent laughter."
    Friedrich Nietzsche

    "I spent a lot of my money on booze, birds and fast cars......the rest I squandered."
    George Best

    "If you are going through hell....keep going."
    Winston Churchill

  3. #3
    Registered User Bajanine's Avatar
    Join Date
    Dec 2001
    Location
    The most peaks over 10,000 feet!
    Posts
    396
    Thanks, I'll tinker around some more but the problem is I didn't change anything! So how come all the sudden I get errors?

    [edit]
    I had a backup copy so I just recopied it over and now everything works again. Very weird!
    [\edit]
    Last edited by Bajanine; 03-24-2003 at 10:24 PM.
    Favorite Quote:

    >For that reason someone invented C++.
    BLASPHEMY! Begone from my C board, you foul lover of objects, before the gods of C cast you into the void as punishment for your weakness! There is no penance for saying such things in my presence. You are henceforth excommunicated. Never return to this house, filthy heretic!



Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Errors including <windows.h>
    By jw232 in forum Windows Programming
    Replies: 4
    Last Post: 07-29-2008, 01:29 PM
  2. Quantum Random Bit Generator
    By shawnt in forum C++ Programming
    Replies: 62
    Last Post: 06-18-2008, 10:17 AM
  3. failure to import external C libraries in C++ project
    By nocturna_gr in forum C++ Programming
    Replies: 3
    Last Post: 12-02-2007, 03:49 PM
  4. Errors with including winsock 2 lib
    By gamingdl'er in forum C++ Programming
    Replies: 3
    Last Post: 12-05-2005, 08:13 PM
  5. Dikumud
    By maxorator in forum C++ Programming
    Replies: 1
    Last Post: 10-01-2005, 06:39 AM