WIN32 #Define Resources

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Rabbit
    Recognized Expert MVP
    • Jan 2007
    • 12517

    WIN32 #Define Resources

    So I was taking a look at Stromcode's WIN32 API tutorial and he was going over window objects within a parent window. He said you have to assign a resource value to each object. Anyways, I was looking over his source code and I found something I didn't know what it was for and that he didn't explain.
    Code:
    //{{NO_DEPENDENCIES}}
    // Microsoft Visual C++ generated include file.
    // Used by Win32WrapperClass.rc
    //
    #define IDB_GOSCAN                      101
    #define IDE_IPADDRESS                   102
    #define IDE_STARTPORT                   103
    #define IDE_ENDPORT                     104
    #define IDS_IPADDRESS                   105
    #define IDS_STARTPORT                   106
    #define IDS_ENDPORT                     107
    #define IDT_OUTPUT                      108
    
    // Next default values for new objects
    // 
    #ifdef APSTUDIO_INVOKED
    #ifndef APSTUDIO_READONLY_SYMBOLS
    #define _APS_NEXT_RESOURCE_VALUE        102
    #define _APS_NEXT_COMMAND_VALUE         40002
    #define _APS_NEXT_CONTROL_VALUE         1001
    #define _APS_NEXT_SYMED_VALUE           109
    #endif
    #endif
    So my question is what is all the APS stuff, basically everything in the second half?
  • Banfa
    Recognized Expert Expert
    • Feb 2006
    • 9067

    #2
    APPSTUDIO symbols are destined for the Editor in DevStudio.

    So for instance

    #define _APS_NEXT_CONTR OL_VALUE 1001

    is specifying that the next time a new control is placed on a dialog box it will be given a control ID value of 1001

    These have nothing to do with the program itself which is why they only exist if _APPSTUDIO invoked is true.

    Comment

    • Rabbit
      Recognized Expert MVP
      • Jan 2007
      • 12517

      #3
      So since I'm using DevC++ I can safely ignore it since it has no bearing on what I'm doing?

      Comment

      • Banfa
        Recognized Expert Expert
        • Feb 2006
        • 9067

        #4
        Originally posted by Rabbit
        So since I'm using DevC++ I can safely ignore it since it has no bearing on what I'm doing?
        I would have thought so.

        The opinion comes with the usual disclaimer that anything you do is your fault and I can be held in no way accountable for you choosing to follow and instructions or suggestions I may give.

        Comment

        • Rabbit
          Recognized Expert MVP
          • Jan 2007
          • 12517

          #5
          Originally posted by Banfa
          I would have thought so.

          The opinion comes with the usual disclaimer that anything you do is your fault and I can be held in no way accountable for you choosing to follow and instructions or suggestions I may give.
          LOL, Thanks.

          Comment

          Working...