Click to Rate and Give Feedback
MSDN
MSDN Library
User Interface
Resource Compiler
 #define

  Switch on low bandwidth view
#define

The #define directive assigns the given value to the specified name. All subsequent occurrences of the name are replaced by the value.


#define name value

name

Name to be defined. This value is any combination of letters, digits, and punctuation that is valid for the C/C++ preprocessor.

value

Integer, character string, or line of text.

 

Example

This example assigns values to the names NONZERO and USERCLASS:

#define     NONZERO     1
#define     USERCLASS   "MyControlClass"

See Also

Preprocessor Directives

Send comments about this topic to Microsoft

Build date: 5/7/2009

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker