Thread: IDEs and Resource Editors

  1. #1
    Registered User
    Join Date
    Jan 2007
    Location
    Northamptonshire, UK
    Posts
    18

    Unhappy IDEs and Resource Editors

    Hi,

    Ok, I'm a fairly experienced programmer in various languages, but am now trying to turn my hand to windows programming in C / C++.

    My application is currently written in java, but that is proving to be too slow, so I intend to migrate to C / C++.

    First up, apologies for what is likely to be a spate of silly questions while I find my feet!

    Right, I hate paying for anything if I can help it, so I'm looking for an open source / shareware / freeware IDE and compiler setup. I have tried Quincy which seemed a little lightweight and I am now trying out lcc-win32.

    Unfortunately, I can't get the resource editor to work. If I open what claims to be the editor, none of the resources shows and if I attempt to add, say a dialog, the whole application crashes!

    So, I'm either looking for one of the following:-
    1. Another integrated IDE (free) that does work properly.
    2. A stand-alone resource editor (again free) which can save as a .rc file and create the associated header file.
    3. A really good tutorial on how to create resource files from scratch.


    Over to you guys!

    Cheers and TIA,

    Paul

  2. #2
    Registered User Tonto's Avatar
    Join Date
    Jun 2005
    Location
    New York
    Posts
    1,465
    Here is what I have:

    1) VC++ 2005 Express (no integrated resource editor)
    2) Symantec Resource Editor
    3) RC.HLP + RS32.HLP - comes with SRE

  3. #3
    MFC killed my cat! manutd's Avatar
    Join Date
    Sep 2006
    Location
    Boston, Massachusetts
    Posts
    870
    Code::Blocks, no resource editor (all in code).
    Silence is better than unmeaning words.
    - Pythagoras
    My blog

  4. #4
    Registered User
    Join Date
    May 2006
    Posts
    630
    Quote Originally Posted by manutd
    Code::Blocks, no resource editor (all in code).
    Whats the best way to convert resources to code?

  5. #5
    MFC killed my cat! manutd's Avatar
    Join Date
    Sep 2006
    Location
    Boston, Massachusetts
    Posts
    870
    Convert? You just create a .rc file and manually type in text, as opposed to having software create it for you. Then you use it the same way.
    Silence is better than unmeaning words.
    - Pythagoras
    My blog

  6. #6
    Registered Abuser
    Join Date
    Jun 2006
    Location
    Toronto
    Posts
    591
    Yep, I use CodeBlocks and wouldn't have my .rc files any other way. I've tried MS VS 2005's res editor, and its all fine and dandy... until you need to tweak minute details by hand and you go to open up the .rc file in a favourite text editor and it looks something like the inside of an industrial sized blender.

    I was previously using Dev-C++, but switched to CB rc2 for two main reasons:
    1. You can install it on any path.
    2. It has collapsable code sections.
    May not sound like much of a reason, but after 7000+ lines of code... it saves your sanity.

  7. #7
    MFC killed my cat! manutd's Avatar
    Join Date
    Sep 2006
    Location
    Boston, Massachusetts
    Posts
    870
    I switched because Dev-C++ blew up in my face...Code::Blocks seems much more finished and professional to me, not to mention the fact that it is actually being updated.
    Silence is better than unmeaning words.
    - Pythagoras
    My blog

  8. #8
    Registered User Bajanine's Avatar
    Join Date
    Dec 2001
    Location
    The most peaks over 10,000 feet!
    Posts
    396
    I have to agree. I had lots of trouble with Dev-C++ so I gave CodeBlocks a try and it is a great IDE, although I must admit i like using MSVS resource editor!
    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!



  9. #9
    Registered User
    Join Date
    Jan 2007
    Location
    Northamptonshire, UK
    Posts
    18
    Thanks for the suggestions folks!

    Ok, so it looks like code:blocks has the vote... I'll have a look.

    BUT

    Several of you recommend hand-crafting my .rc files. I'm happy to do this but could use a good reference to the syntax, options etc etc.

    Anyone knowof such a beast. I've been googling away, but just can't seem to hit on the right search string!

    Secondly, I'm a little unclear about icons and other graphical / binary resources. When I complile, will these be automatically incorporated into my .exe, or do I need to set this up?

    TIA

    Paul

  10. #10
    erstwhile
    Join Date
    Jan 2002
    Posts
    2,227
    CProgramming FAQ
    Caution: this person may be a carrier of the misinformation virus.

  11. #11
    MFC killed my cat! manutd's Avatar
    Join Date
    Sep 2006
    Location
    Boston, Massachusetts
    Posts
    870
    Icons are introduced in the resource and put into the window in the main piece of code.
    Silence is better than unmeaning words.
    - Pythagoras
    My blog

  12. #12
    Registered Abuser
    Join Date
    Jun 2006
    Location
    Toronto
    Posts
    591
    You may have already come across this on your travels, but theForger's win32api tutorial is really helpful, and the section on resources might help you out with #3.

  13. #13
    Registered User pronecracker's Avatar
    Join Date
    Oct 2006
    Location
    netherlands
    Posts
    158
    Quote Originally Posted by manutd View Post
    Convert? You just create a .rc file and manually type in text, as opposed to having software create it for you. Then you use it the same way.
    You DON'T want to create dialogs that way!
    Don't call me stupid.

  14. #14
    Malum in se abachler's Avatar
    Join Date
    Apr 2007
    Posts
    3,195
    lcc-win32 hasnt been updated in a very long time. last I looked it only supports processors up to the pentium pro;

    Quote Originally Posted by manutd View Post
    Code::Blocks, no resource editor (all in code).
    which makes it a bit of a pain, also, it wont run under Vista. If you dont need to run under Vista, then its great;

    Quote Originally Posted by Bajanine View Post
    although I must admit i like using MSVS resource editor!
    MSVS really does have the best IDE in my opinion. So much so that at home I use VS 4.0 to edit the code, then compile it with Dev-C++;
    Last edited by abachler; 06-07-2007 at 10:33 AM.

  15. #15
    Registered User
    Join Date
    Apr 2007
    Location
    Malta
    Posts
    9
    You can check out the slides of the University I attend for some example resource scripts:
    http://www.cs.um.edu.mt/~kguil/csa2100.html

    The part on resources starts on slide 90, and is not that bad. For some reason references about resource scripts seem to be lacking on the internet, so I found those slides particularly useful myself.

Popular pages Recent additions subscribe to a feed