Building an IT++ application with Visual Studio Express 2010


Now that we have built the IT++ libraries we can start with creating our own IT++ applications. In order to simplify the build process I have created a template which automates the project creation.

Download the template Wizard from here and unzip it in c:\Program Files\Microsoft Visual Studio 10\VC\.

On my installation I have IT++ on c:\. If it is the same for you, you won't have to change anything for the things to work. If your IT++ installation is on another disk, you will have to edit C:\Program Files\Microsoft Visual Studio 10\VC\VCWizards\AppWiz\Generic\IT++\Scripts\1033\default.js and change these two lines to reflect the correct paths:

// TODO: edit the next 2 lines to point to the correct directories
var ITPP_LIB_PATH = "C:\\itpp-4.2\\lib";
var ITPP_INC_PATH = "C:\\itpp-4.2\\";

Let's create our first project!

Launch Visual C++ Express and select File New Project in the menu. You should now have this dialog box:

Select the IT++ WIN32 template and create the project in c:\itpp-4.2\MyProjects, give it the name test_it_2010 and click OK.

As you can see, the template has even generated a program for you ! It is a simple QPSK simulation on AWGN to give you a little flavor of IT++:

Build the Debug version (F7 key or menu Debug\Build Solution). Run the generated executable by pressing CTRL + F5:

Once your program works, you can build the Release version by changing the project configuration into Release mode. Build the project and run it. It is much faster than before, isn't it?

If you look at the executables in the project's directory you will notice that they haven't the same size. The Release one is much smaller than the Debug one.