I am using Visual Studio 2010 and started console application project.
VS generates the entry point as _tmain(int argc, wchar_t *argv[]). Instead, I need the entry point main(int argc, char *argv[]) – just a standard console application.
What are the settings that I need to change from defaults and how does it work?
Simply create an empty console project (there’s a setting when you pick the project type), then add a “main.cpp” file and add the standard
mainfunction. Works every time for me. Actually, I never use the premade/generated C++ projects due to overhead, precompiled headers, etc.