How do you work with resource files???

This is a discussion on How do you work with resource files??? within the Windows Programming forums, part of the Platform Specific Boards category; How exactly do you put resource files into your programs so that they compile and run without any problems???...

  1. #1
    Registered User Finchie_88's Avatar
    Join Date
    Aug 2004
    Posts
    154

    Question How do you work with resource files???

    How exactly do you put resource files into your programs so that they compile and run without any problems???

  2. #2
    Registered User
    Join Date
    Sep 2004
    Location
    California
    Posts
    3,246
    That depends on your compiler.

  3. #3
    Registered User Finchie_88's Avatar
    Join Date
    Aug 2004
    Posts
    154
    ok, I have Dev-C++, and another resource editor to make it slightly eaiser to make win32 apps, both of the programs make the same resource files, and so they are compatible (I dont have a clue if that makes any difference, but I thought I would share it with you anyway)

  4. #4
    Registered User
    Join Date
    Sep 2004
    Location
    California
    Posts
    3,246
    I've never used Dev-C++, but doing the following might work:

    Just add the resource file to your project. Then make sure and include the resource header in your code:
    #include "resource.h"

  5. #5
    Registered User
    Join Date
    Aug 2004
    Posts
    23

    Lightbulb Try This...

    the winprog tutorial (www.winprog.org) teaches how to use resource scripts though it doesn't tell u how to compile them. I'm using MinGW and you have to use windres (e.g. "windres resource.rc -o resource.o" at the command line).

    dunno if that helps.

    cal

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Sorting out a resource manager
    By psychopath in forum Game Programming
    Replies: 1
    Last Post: 11-10-2008, 06:12 PM
  2. Dialog Buttons without resource files?
    By 7smurfs in forum Windows Programming
    Replies: 5
    Last Post: 07-18-2004, 08:13 PM
  3. fopen();
    By GanglyLamb in forum C Programming
    Replies: 8
    Last Post: 11-03-2002, 11:39 AM
  4. Resource Files
    By Unregistered in forum Windows Programming
    Replies: 11
    Last Post: 09-11-2001, 10:52 PM

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