error in resource file

This is a discussion on error in resource file within the C++ Programming forums, part of the General Programming Boards category; I've just started out with C++ programming and I'm having problems allready. I use dev-c++, and when I try to ...

  1. #1
    Registered User
    Join Date
    Sep 2005
    Posts
    3

    error in resource file

    I've just started out with C++ programming and I'm having problems allready. I use dev-c++, and when I try to compile a simple program (hello world), it says: "error in resource file".
    I've checked the resource file and found this as content:
    Code:
    500 ICON MOVEABLE PURE LOADONCALL DISCARDABLE "C:/Dev-Cpp/Icons/Edit.ico"
    Does anyone know whats wrong here, and what can I do to prevent this?

  2. #2
    C++ Enthusiast jmd15's Avatar
    Join Date
    Mar 2005
    Location
    MI
    Posts
    532
    Maybe that icon doesn't exist? Check the path, and if you don't want an icon just the default exe icon then make the project not even link a resource file. Do that by clearing the box that says Load Resource File in Project options.
    Trinity: "Neo... nobody has ever done this before."
    Neo: "That's why it's going to work."
    c9915ec6c1f3b876ddf38514adbb94f0

  3. #3
    Registered User Queatrix's Avatar
    Join Date
    Apr 2005
    Posts
    1,342
    You must have somthing else in the resource file than just that, 'cause I use Dev-C++ too, and I was able to compile it with no errors.

  4. #4
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,048
    There are different versions of Dev-C++. I use version 4.0, but most people use 4.9.9.2 or something.

    I think your error is because "C:/Dev-Cpp/Icons/Edit.ico" doesn't exist, I would guess.
    dwk

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell


    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ: cpwiki.sf.net

    My website: http://dwks.theprogrammingsite.com/
    Projects: codeform, xuni, atlantis, nort, etc.

  5. #5
    Registered User
    Join Date
    Sep 2005
    Posts
    3
    the icon exists, that I'm sure.
    I removed the resource file now, but it still won't compile.
    It just says "compilation completed" but doesn't actually compile :s

  6. #6
    Registered User Queatrix's Avatar
    Join Date
    Apr 2005
    Posts
    1,342
    Maybe there is somthing wrong with your project file and the compiler gets confused.

  7. #7
    Registered User
    Join Date
    Sep 2005
    Posts
    3
    A friend gave me another version of dev-c++, and now it works withoud any problem, I guess I'll never know what the problem was, maybe just a bug

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Post...
    By maxorator in forum C++ Programming
    Replies: 12
    Last Post: 10-11-2005, 09:39 AM
  2. Replies: 3
    Last Post: 03-04-2005, 02:46 PM
  3. Possible circular definition with singleton objects
    By techrolla in forum C++ Programming
    Replies: 3
    Last Post: 12-26-2004, 10:46 AM
  4. resource file problem
    By jjj93421 in forum Game Programming
    Replies: 6
    Last Post: 03-30-2004, 10:58 PM
  5. menu resource file
    By satriani in forum Windows Programming
    Replies: 5
    Last Post: 06-08-2002, 11:52 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21