Hello Bob, Ensure that you have selected "MultiThreaded" or "MultiThreaded DLL" (or the debug versions) in the Project->Settings->CodeGeneration->Use Runtime Library. By default this is set to "Single Threaded Library" if you create a console application. Richard