Reputation: 12511
If I'm making a simple C++ program, such as connecting to a database, which option should I choose in Visual Studio 2017 as a Visual C++ template?
Windows Console Application or Empty Project?
Will a Windows Console Application based program run only on windows where as an empty project one will run on many OS'?
Upvotes: 2
Views: 7344
Reputation: 441
Use a console application, it will already have the main function and such in there. It is what you would use for a "hello world" program. If you start from an empty project you're just going to have to create a similar .cpp file anyway.
Upvotes: 0
Reputation: 256
A "Window's Console Application" program has stuff added to your project to make it run smoother with the Window's command prompt. However, even if you create an "Empty Project", the compiled version will not run on another OS, by default. You will have to recompile for each OS you want to work with.
Upvotes: 3