Click here to Skip to main content
15,891,943 members
Articles / Desktop Programming / WTL

C++ Header Guard

Rate me:
Please Sign up or sign in to vote.
3.83/5 (9 votes)
17 Mar 2009CPOL2 min read 51.5K   238   12  
Create unique preprocessor macros to prevent multiple header inclusion.
��#ifndef IDC_STATIC

#define IDC_STATIC (-1)

#endif



#define IDR_MAINFRAME                           128

#define IDD_MAINDLG                             129

#define IDB_BITMAP1                             130

#define IDC_EDIT1                               1001

#define IDC_HELP1                                1002

#define IDC_NEWINCLG                            1003

#define IDC_COPY                                1005

#define IDC_BANNER                              57682

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer
Croatia Croatia
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions