
Step 4: Add the following code before the int main() function: #include "stdafx.h" Now it’s the time to include the proper libraries to your new C++ project in visual studio. Including the Proper Libraries in your Visual C++ Project Completing the empty project creation in Visual Studio. Step 3: Click on the “ Finish” button to start the project. Creating a Win32 Console Application in Visual Studio. Step 2: Create a new Visual C++ – Win32 Console Application. Step 1: Let’s start a new project in Visual Studio: Launching a new project in Visual Studio. We start this journey, by first creating an empty Visual C++ Win32 Console Application in Visual Studio, by following the below steps: Great! Let’s begin this interesting tutorial!Ĭreating an Empty Visual C++ Win32 Console Application

My course can help to easily get started with the basics of Programming, as well as with the following 6 interesting Programming/Scripting Languages: C, C++, C#, Java, Python and SQL. Prior to start reading, if you are really interested in learning Programming, then you should definitely check my 6-hour online course, “ Introduction to Computer Programming for Beginners“. In this article, we are going to see, step by step, how we can connect to SQL Server from a Visual C++ program using an ODBC connection.
