Visual Studio 2010 Setup

Creating an empty project

 * Open the Microsoft VS 2010
 * In the File menu select the New and select Win32 Console Application. Set the Location to be the path to your console project (e.g. D:\Porta\demo\) and set the Project name to be gui and press OK.


 * In the next window select An empty project. and press Finish and the OK.

Adding files to your project

 * In the project tab go to project->Add Existing Item. Select all the files in the folder and press OK to add them to your project. Don't forget to also add the resource files under the res folder.

Project Settings
To compile the project, the following changes need to be added to your project properties. These settings can be modified by going into Project->Properties. In the project properties:


 * In the Configuration Properties tab,
 * go to General and choose Use MFC in a shared DLL in the Use Of MFC.
 * in the same tab change Output Directory and Intermediate Directory to the path that contains the dlls for the project. In this case, it will be ../../../../bin/.


 * In the C/C++ tab,
 * go to General and add ../../../inc in the Additional include directories:.
 * In the Linker tab,
 * go to the General tab and set the Output file name: to ../../../../bin/gui.exe.
 * on the same page, add ../../../lib in the Additional Library Directories:
 * go to the Input tab and add porta.lib to Additional Dependencies.
 * go to the Advanced tab and add wWinMainCRTStartup to Entry Point.



Now you can press OK and the console project should compile.