user23783: How do you manually set switches when you are compiling Stockfish in Visual Studio?
In the type.h file it saids:

When Makefile is not used (e.g. with Microsoft Visual Studio) some switches
  need to be set manually:
-DNDEBUG      | Disable debugging mode. Always use this for release.
-DNO_PREFETCH | Disable use of prefetch asm-instruction. You may need this to
                | run on some very old machines.
DUSE_POPCNT  | Add runtime support for use of popcnt asm-instruction. Works
               | only in 64-bit mode and requires hardware with popcnt support.
-DUSE_PEXT    | Add runtime support for use of pext asm-instruction. Works
                | only in 64-bit mode and requires hardware with pext support.

I just want to where where/how do you put these "commands"?

user9684: This question should be in programming.
These can be put in a top h file, the best being stdafx.h.  Just include "#define DNDEBUG",
They can be added to the command line/compiler commands.  Under VS6, Project->Settings (Alt+f7), there is a box to add project settings under the c/c++ tab.

23783: <p>How do you manually set switches when you are compiling Stockfish in Visual Studio?</p>

<p>In the type.h file it saids:</p>

<blockquote>
  <p>When Makefile is not used (e.g. with Microsoft Visual Studio) some switches
  need to be set manually:</p>
  
  <p>-DNDEBUG      | Disable debugging mode. Always use this for release.</p>
  
  <p>-DNO_PREFETCH | Disable use of prefetch asm-instruction. You may need this to
                | run on some very old machines.</p>
  
  <p>DUSE_POPCNT  | Add runtime support for use of popcnt asm-instruction. Works
               | only in 64-bit mode and requires hardware with popcnt support.</p>
  
  <p>-DUSE_PEXT    | Add runtime support for use of pext asm-instruction. Works
                | only in 64-bit mode and requires hardware with pext support.</p>
</blockquote>

<p>I just want to where where/how do you put these "commands"?</p>
 9684: <p>This question should be in programming.</p>

<p>These can be put in a top h file, the best being stdafx.h.  Just include "#define DNDEBUG",</p>

<p>They can be added to the command line/compiler commands.  Under VS6, Project->Settings (Alt+f7), there is a box to add project settings under the c/c++ tab.</p>
