Disabling STRICT

To disable STRICT type checking, define the symbol name NO_STRICT. In Visual C/C++, you can also specify this definition on the command line or in a makefile by specifying /DNO_STRICT as a compiler option.

To define NO_STRICT on a file-by-file basis, insert a #define statement before including Windows.h:


#define NO_STRICT
#include <windows.h>


For best results, you should also set the warning level for error messages to at least /W3. This is always advisable with applications for Windows, because a coding practice that causes a warning (for example, passing the wrong number of parameters) usually causes a fatal error at run time if it is not corrected.

Related topics

Enabling STRICT
STRICT Compliance

 

 

Community Additions

ADD
Show: