Click to Rate and Give Feedback
MSDN
MSDN Library
Visual Studio 2005
Visual Studio
Visual C++
Linking
Linker Options
 /NXCOMPAT (Compatible with Data Exe...
Collapse All/Expand All Collapse All
This page is specific to
Microsoft Visual Studio 2005/.NET Framework 2.0

Other versions are also available for the following:
Visual C++ Linker Options
/NXCOMPAT (Compatible with Data Execution Prevention)

Indicates that an executable was tested to be compatible with the Windows Data Execution Prevention feature.

/NXCOMPAT[:NO]

/NXCOMPAT is on by default if a component requires Windows Vista (/SUBSYSTEM 6.0 and greater). See /SUBSYSTEM (Specify Subsystem) for more information.

/NXCOMPAT:NO can be used to explicitly specify an executable as not compatible with Data Execution Prevention.

For more information on Data Execution Prevention, see:

To set this linker option in the Visual Studio development environment

  1. Open the project's Property Pages dialog box. For details, see Setting Visual C++ Project Properties.

  2. Click the Linker folder.

  3. Click the Command Line property page.

  4. Type the option into the Additional Options box.

To set this linker option programmatically

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
NXCOMPAT won't work for XP      EricLaw-MSFT ... Thomas Lee   |   Edit   |   Show History
Windows XP's loader does not recognize the NXCOMPAT flag. For XPSP3 or later, call SetProcessDEPPolicy instead.
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement | Site Feedback
Page view tracker