qn on Microsoft Developer Studio generated resource script

This is a discussion on qn on Microsoft Developer Studio generated resource script within the Windows Programming forums, part of the Platform Specific Boards category; Hi, just started on win32. I notice some Microsoft Developer Studio generated resource script in the resource script when i ...

  1. #1
    Registered User
    Join Date
    Sep 2003
    Posts
    133

    qn on Microsoft Developer Studio generated resource script

    Hi, just started on win32. I notice some Microsoft Developer Studio generated resource script in the resource script when i created a project under VC++.

    In particular:

    Code:
    #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 DISCARDABLE
    BEGIN
        "resource.h\0"
    END
    
    2 TEXTINCLUDE DISCARDABLE
    BEGIN
        "#include ""afxres.h""\r\n"
        "\0"
    END
    
    3 TEXTINCLUDE DISCARDABLE
    BEGIN
        "\r\n"
        "\0"
    END
    
    #endif    // APSTUDIO_INVOKED
    I know how to code for menus, string tables and stuff. From what i learnt, there seems no need for the code above in resource scripts. Can someone give me a brief and simple explanation on what are they? Also, can i safely remove them( not comfortable having codes in my file when i dont understand them)?

  2. #2
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,701
    >> not comfortable having codes in my file when i dont understand them

    Read this to understand them then, cuz you probably don't want to remove them.

    gg

  3. #3
    Registered User
    Join Date
    Sep 2003
    Posts
    133
    ok, in short they are needed when i use multiples resource files. Couldnt understand 90% of what was on the URL you provided. I guess i will concentrate on the basic before i come to that at a later stage. Thanks codeplug, u helped me a great deal today.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Problem building Quake source
    By Silvercord in forum Game Programming
    Replies: 16
    Last Post: 07-11-2010, 10:13 AM
  2. C++ std routines
    By siavoshkc in forum C++ Programming
    Replies: 33
    Last Post: 07-28-2006, 01:13 AM
  3. Microsoft Visual Studio .NET HELP!!
    By mrafcho001 in forum Tech Board
    Replies: 8
    Last Post: 03-15-2005, 02:16 PM
  4. Apps that act "differently" in XP SP2
    By Stan100 in forum Tech Board
    Replies: 6
    Last Post: 08-16-2004, 11:38 PM
  5. wtf is wrong with this resource script!
    By DarkViper in forum Windows Programming
    Replies: 1
    Last Post: 12-06-2002, 08:14 PM

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