Resource Files...

This is a discussion on Resource Files... within the C++ Programming forums, part of the General Programming Boards category; I have another question. How would I make a resource file (*.rc) and integrate it in my game? All help ...

  1. #1
    Registered User
    Join Date
    Jul 2005
    Posts
    9

    Resource Files...

    I have another question.

    How would I make a resource file (*.rc) and integrate it in my game?

    All help is appreciated!
    Last edited by FWGaming; 07-13-2005 at 10:00 PM.

  2. #2
    Slave MadCow257's Avatar
    Join Date
    Jan 2005
    Posts
    735
    In Microsoft Visual Studio you can add resources by pressing Ctrl+R. It will automatically create the resource file for you. I don't know how to change the extension but then again I don't know what purpose that would serve.

  3. #3
    The N00b That Owns You!
    Join Date
    Jul 2005
    Location
    Canada!
    Posts
    178
    it wouldnt serve the prurpase definatly not if your not giving out the source
    New Function!!!!

    glAddIdol(C+noob);

    The feeling of rusty spoons against my salad fingers is almost ORGASMIC

  4. #4
    Registered User
    Join Date
    Jul 2005
    Posts
    9

    ...

    I am not giving out the source always. There will be future projects in which I let friends download my games in fully compiled form. I want to know how to create a resource page, or atleast how to access one after being compiled.

  5. #5
    Banned
    Join Date
    Jun 2005
    Posts
    594
    THis is what a resource file looks like for a ismple program i
    was writing :

    Code:
    // Microsoft Visual C++ generated resource script.
    //
    #include "resource.h"
    
    #define APSTUDIO_READONLY_SYMBOLS
    /////////////////////////////////////////////////////////////////////////////
    //
    // Generated from the TEXTINCLUDE 2 resource.
    //
    #include "afxres.h"
    
    /////////////////////////////////////////////////////////////////////////////
    #undef APSTUDIO_READONLY_SYMBOLS
    
    /////////////////////////////////////////////////////////////////////////////
    // English (U.S.) resources
    
    #if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
    #ifdef _WIN32
    LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
    #pragma code_page(1252)
    #endif //_WIN32
    
    #ifdef APSTUDIO_INVOKED
    /////////////////////////////////////////////////////////////////////////////
    //
    // TEXTINCLUDE
    //
    
    1 TEXTINCLUDE 
    BEGIN
        "resource.h\0"
    END
    
    2 TEXTINCLUDE 
    BEGIN
        "#include ""afxres.h""\r\n"
        "\0"
    END
    
    3 TEXTINCLUDE 
    BEGIN
        "\r\n"
        "\0"
    END
    
    #endif    // APSTUDIO_INVOKED
    
    
    /////////////////////////////////////////////////////////////////////////////
    //
    // Cursor
    //
    
    IDC_CURSOR1             CURSOR                  "cursor1.cur"
    #endif    // English (U.S.) resources
    /////////////////////////////////////////////////////////////////////////////
    
    
    
    #ifndef APSTUDIO_INVOKED
    /////////////////////////////////////////////////////////////////////////////
    //
    // Generated from the TEXTINCLUDE 3 resource.
    //
    
    
    /////////////////////////////////////////////////////////////////////////////
    #endif    // not APSTUDIO_INVOKED
    Im not aware fo a way that you cna change the extention,
    still dont know why youd want to, but you could try setting a new
    extention up thru yoru operating system, so that your compiler
    recongnizes it but that sitll doesnt mean it will work.

  6. #6
    Registered User
    Join Date
    Jul 2005
    Posts
    9
    Okay nevermind the extension change. I just want to know how to make a resource file that stores images in it for animations later in the game so that they are not open source (currently my sprites are loaded from folders from within the games directory). I don't want people taking my sprites. :-p

  7. #7
    Banned
    Join Date
    Jun 2005
    Posts
    594
    i dont think you can do a sprite as a resource.

    errm correction, maybe thsi would help??

    http://www.developerfusion.co.uk/show/2471/

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Batch file programming
    By year2038bug in forum Tech Board
    Replies: 10
    Last Post: 09-05-2005, 03:30 PM
  2. Resource Files....
    By gcn_zelda in forum Windows Programming
    Replies: 2
    Last Post: 12-13-2003, 02:02 PM
  3. I Need To Know Some Things That I Can Put Into A Batch File
    By TheRealNapster in forum A Brief History of Cprogramming.com
    Replies: 1
    Last Post: 10-20-2003, 08:12 PM
  4. Multiple Resource files
    By doodlak in forum C++ Programming
    Replies: 0
    Last Post: 07-04-2002, 06:13 PM
  5. reinserting htm files into chm help files
    By verb in forum Windows Programming
    Replies: 0
    Last Post: 02-15-2002, 08:35 AM

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