Thread: Help!!! Strange dev C++ Error!

  1. #1
    Registered User
    Join Date
    Feb 2002
    Posts
    73

    Angry Help!!! Strange dev C++ Error!

    Whenever I attempt to use resources, and I build the resource, I get the following error: C:\DEV-C_~1\BIN\windres: no resources
    No matter what I add to my resource, it keeps doing that. And, it matters little what I add to my source code, because it won't compile! It will stop with the same error! I have tried everything from making a resource header instead of using the resource editor, to putting something in a header and including it in my rc.(I read that works in some win programming FAQ). Please help! I am sure that the awnser is an obvious one, but I am at a lose as to why this is happening. It is very difficult to develop a good win app without resources. Thanks for your wisdom!


  2. #2
    Programming is fun, mkay?
    Join Date
    Oct 2001
    Posts
    490

    Talking You have to...

    You have to have some kind of resouce in the resource editor.(Icon, BMP, etc.)
    Website(s): http://www16.brinkster.com/trifaze/

    E-mail: [email protected]

    ---------------------------------
    C++ Environment: MSVC++ 6.0; Dev-C++ 4.0/4.1
    DirectX Version: 9.0b
    DX SDK: DirectX 8.1 SDK

  3. #3
    Registered User
    Join Date
    Feb 2002
    Posts
    73
    I did! I specifically said that in my post..... Can you please tell me why it does not work with anything?

  4. #4
    train spotter
    Join Date
    Aug 2001
    Location
    near a computer
    Posts
    3,868
    Are you including the header file created by the resource editor?

    resource.h

    Are you using the common ctrls that ned to be init with

    InitCommonControlsEx() ? or [InitCommonControls()]
    Last edited by novacain; 02-25-2002 at 10:49 PM.
    "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

  5. #5
    Registered User
    Join Date
    Feb 2002
    Posts
    73
    No to the second one. I've tried doing the first thing. NO MATTER WHAT I PUT IN THERE, IT JUST DOENS'T WORK!(this is not anger, but frustration at my dev tools) Someone help! Could someone point me in the direction of perhaps an incorrect setup of the software, or something of that nature. Because, even if I use the built in icon, bitmap, dialog, or font creator, it still doesn't work!

  6. #6
    Programming is fun, mkay?
    Join Date
    Oct 2001
    Posts
    490

    Question Maybe...

    When you create it, do you click the "Build Resource" button? If so, goto the "Project Options" button in the main window and go down to almost the last box. Check to be sure that it points to the name of your resource file.
    Website(s): http://www16.brinkster.com/trifaze/

    E-mail: [email protected]

    ---------------------------------
    C++ Environment: MSVC++ 6.0; Dev-C++ 4.0/4.1
    DirectX Version: 9.0b
    DX SDK: DirectX 8.1 SDK

  7. #7
    Registered User
    Join Date
    Feb 2002
    Posts
    73
    I have made certain of that as well. I get the error as soon as I click on "buid resource". I know this sounds like an impossiblitly, but it is true! And, my programming has been made very difficult because of it. Thanks to everyone who has and will(hopefull) help me.

  8. #8
    train spotter
    Join Date
    Aug 2001
    Location
    near a computer
    Posts
    3,868
    Are you making a WIN32 app or a WIN32 _console_ app (project wise)?
    "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

  9. #9
    Registered User
    Join Date
    Feb 2002
    Posts
    73
    I'm making a win 32 app. And it is VERY hard to make a dialog without resouces....

  10. #10
    train spotter
    Join Date
    Aug 2001
    Location
    near a computer
    Posts
    3,868
    Sorry, don't know what the problem is. I use MSVC and after starting a WIN32 app project (not WIN32 console app) I just

    Insert resouce (pick type eg menu, dialog)
    Name it
    Put ctrls on it
    test it in the editor
    #include the resource.h in all the main source files
    Use it

    Open up the resource.h in a text editor or the compiler and look at the contents.
    "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

  11. #11
    Unregistered
    Guest

    C:\DEV-C_~1\BIN\windres: no resources

    Have you installed Dev-C++ to the root directory ? If you have installed to for example C:\Program Files\Dev-C++\, you will have to update the paths in the "Compiler Options" dialog.

  12. #12
    Registered User
    Join Date
    Feb 2002
    Posts
    73
    Yay! Thats it! Thanks soooo much! I can now continue with my work, thanks!

  13. #13
    Registered User
    Join Date
    Dec 2001
    Posts
    108

    Wink

    I thought that was probably the problem, I did the same thing when I first installed Dev on my computer.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Testing some code, lots of errors...
    By Sparrowhawk in forum C Programming
    Replies: 48
    Last Post: 12-15-2008, 04:09 AM
  2. load gif into program
    By willc0de4food in forum Windows Programming
    Replies: 14
    Last Post: 01-11-2006, 10:43 AM
  3. Post...
    By maxorator in forum C++ Programming
    Replies: 12
    Last Post: 10-11-2005, 08:39 AM
  4. Dikumud
    By maxorator in forum C++ Programming
    Replies: 1
    Last Post: 10-01-2005, 06:39 AM
  5. Learning OpenGL
    By HQSneaker in forum C++ Programming
    Replies: 7
    Last Post: 08-06-2004, 08:57 AM