Thread: MSVC6 appwizard generated code

  1. #1
    Registered User
    Join Date
    Jul 2003
    Posts
    1

    MSVC6 appwizard generated code

    I am new to C++ and young. Im using Visual C++ 6.

    I am annoyed that I do not know what the numbers mean that are generated by the MFC EXE appwizard and put into a preprocessor directive. They are in the StdAfx header file. I could not find it in any documentation. The following are them:

    AFX_STDAFX_H__58E6EB41_B4FF_49C3_ABF3_D5ECF608E7F9 __INCLUDED_

    Every time I make a new workspace the numbers change, even when it has the same name.


    Here is the complete header file:
    Code:
    // stdafx.h : include file for standard system include files,
    // or project specific include files that are used frequently, but
    //      are changed infrequently
    //
    
    #if !defined(AFX_STDAFX_H__58E6EB41_B4FF_49C3_ABF3_D5ECF608E7F9__INCLUDED_)
    #define AFX_STDAFX_H__58E6EB41_B4FF_49C3_ABF3_D5ECF608E7F9__INCLUDED_
    
    #if _MSC_VER > 1000
    #pragma once
    #endif // _MSC_VER > 1000
    
    #define VC_EXTRALEAN // Exclude rarely-used stuff from Windows headers
    
    #include <afxwin.h>         // MFC core and standard components
    #include <afxext.h>         // MFC extensions
    #include <afxdtctl.h> // MFC support for Internet Explorer 4 Common Controls
    #ifndef _AFX_NO_AFXCMN_SUPPORT
    #include <afxcmn.h> // MFC support for Windows Common Controls
    #endif // _AFX_NO_AFXCMN_SUPPORT
    
    
    //{{AFX_INSERT_LOCATION}}
    // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
    
    #endif // !defined(AFX_STDAFX_H__58E6EB41_B4FF_49C3_ABF3_D5ECF608E7F9__INCLUDED_)

  2. #2
    ‡ †hë Ö†hÈr sîÐè ‡ Nor's Avatar
    Join Date
    Nov 2001
    Posts
    299
    its different every time so that the file will only be included in your project once.
    Try to help all less knowledgeable than yourself, within
    the limits provided by time, complexity and tolerance.
    - Nor

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Binary Search Trees Part III
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 10-02-2004, 03:00 PM
  2. True ASM vs. Fake ASM ????
    By DavidP in forum A Brief History of Cprogramming.com
    Replies: 7
    Last Post: 04-02-2003, 04:28 AM
  3. Interface Question
    By smog890 in forum C Programming
    Replies: 11
    Last Post: 06-03-2002, 05:06 PM
  4. Replies: 4
    Last Post: 01-16-2002, 12:04 AM
  5. auto <cringe> generated <cringe> code <cringe>
    By RobS in forum A Brief History of Cprogramming.com
    Replies: 0
    Last Post: 08-22-2001, 04:46 AM