Symbolic Value : Resource Definition

debugtext - Assign an error code number to a text string.
----------------------------------------------------------------------------------------------------------


#include <globerr.h>

Description :

Assigns the given error code to the given text string. When language compiling, the macro actually amounts to nothing more than a comment. When resource compiling a module (RC), the macro is used to map error code numbers to a corresponding text string.
Sample Usage :

#define ERR_POOL_FREE_CHAIN PKG_MISC+26
debugtext(ERR_POOL_FREE_CHAIN, "Invalid pool free chain")
#define ERR_LOCK_POOL_TWICE PKG_MISC+27
debugtext(ERR_LOCK_POOL_TWICE, "Attempt to lock twice using same pool lock")
#define ERR_TOO_MANY_LOCKS PKG_MISC+28
debugtext(ERR_TOO_MANY_LOCKS, "Too many locks on pool")


See Also :

AddInFormatError
----------------------------------------------------------------------------------------------------------