OK so I bought this book and I like it, but it took some effort to get the examples to work. Here is what I did. It now compiles and runs.
1. Copy NxFoundation.dll and NxPhysics.dll to GameCode2\Bin (as opposed to the .lib files mentioned in the readme).
2. Added the code "using namespace std;" to line 12 in file DXUTMisc.h
3. Changed line 562 in Physics.cpp to BoxDesc.shapeFlags |= NX_TRIGGER_ON_ENTER | NX_TRIGGER_ON_LEAVE
1. Copy NxFoundation.dll and NxPhysics.dll to GameCode2\Bin (as opposed to the .lib files mentioned in the readme).
2. Added the code "using namespace std;" to line 12 in file DXUTMisc.h
3. Changed line 562 in Physics.cpp to BoxDesc.shapeFlags |= NX_TRIGGER_ON_ENTER | NX_TRIGGER_ON_LEAVE