/Wp64 (Detect 64-Bit Portability Issues)
Collapse the table of content
Expand the table of content
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer

/Wp64 (Detect 64-Bit Portability Issues)


/Wp64 detects 64-bit portability problems on types that are also marked with the __w64 keyword. /Wp64 is off by default in the Visual C++ 32-bit compiler and on by default in the Visual C++ 64-bit compiler.

Variables of the following types are tested on a 32-bit operating system as if they were 64 bits:

  • int
  • long
  • pointer

To set this compiler 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 C/C++ folder.
  3. Click the General property page.
  4. Modify the Detect 64-bit Portability Issues property.

To set this compiler option programmatically

See Detect64BitPortabilityProblems Property.

See Also

Compiler Options | Setting Compiler Options

© 2016 Microsoft