The __fltused is an internal variable for VC, meaning you've used floating point somewhere. Try adding a line
int _fltused = 0x9875;
When I'm working with this kind of code, I have a section like this:
#ifndef _DEBUG
int _fltused = 0x9875;
void WINAPI WinMainCRTStartup(void)
{
WinMain(GetModuleHandle(NULL), 0, 0, 1);
ExitProcess(0);
}
#endif
which means I can debug the code in Debug mode, and building for Release has the same settings.
Jim