Visual Studio 2010 Setup

You can compile all the SDK's from version 5.7.4 and up using Visual Studio 2010. For Version 6.X, Ultrasonix recommends using Qt Creator for all the GUI interface.

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 and choose Use Unicode Character Set in the Character Set.
 * 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/.
 * go to Debugging and set Environment to PATH=%PATH%;../../../../bin/

Note: for SDK Version 6.x, if you error LNK2019, then remove the wWinMainCRTStartup
 * In the C/C++ tab,
 * go to General and add ../../../inc in the Additional include directories:.
 * In the Linker tab,
 * 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.