I get the following link warnings, and the app jumps off to code-never-never-land (0xFFFE...)when it exits.
Linking...
LINK : warning LNK4098: defaultlib "nafxcwd.lib" conflicts with use of other libs; use /NODEFAULTLIB:library
LINK : warning LNK4049: locally defined symbol "__setmbcp" imported