Ok, here's what' happening.. When i create a project, two .cpp files are added to the project, one is "stdafx.cpp" and other is "projectname.cpp" which contains these lines..
I suspected this is where DOS is run, but when i remove this file rebuild the project, no .exe file gets created... ???
int _tmain(int argc, _TCHAR* argv)
MSVCRTD.lib(crtexe.obj) : error LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartup
c:\Quest Projects\Visual Studio\Radar\RFSRange\Debug\RFSRange.exe : fatal error LNK1120: 1 unresolved externals