My First Project Windows

This tutorial is for Visual Studio 2010 (Main tutorial for 32bits, but with notes on how to setup the 64bits version).

1) Create a new Visual Studio project: File -> New Project. Choose Visual C++ in the left pane -> Win32 Console Application, give it a name and press OK. In the new window click Next and then configure the next window just like this 2) Now you will add a new file: Expand the Solution Explorer on the right of the screen and right click on the Source File folder -> Add -> Add New Item. Now choose Visual C++ on the left, C++ file(.cpp) on the center, give it a name and press Add. Important note: If you are going to build a x64 application with ViiM's x64 libs, then you have to change the project platform from Win32 to x64: 1) Click on that Win32 dropdown menu from the main window and click Configuration Manager... 2) On the right, in Active Solution Platformtform: click  3) In the New Platform, choose x64 4) press OK and Close. 3) And now you will configure your project: Project -> Properties. 4) Finally in the file you added in step 2, include ViiM with #include and you're ready to go! 5) Here is ViiM "hello world" application. You create the ViiM object, start the sensor and constantly update the frames per second and print it to the terminal. You can download the project in the end of this page. Visual Studio 2010 x86 MyFirstProject
 * Configuration Properties
 * C/C++
 * General: In Additional Include Directories click on the arrow and press edit.... In the new window write the lines $(VIIM_INCLUDES) AND $(OPEN_NI_INCLUDE).
 * Configuration Properties
 * Linker
 * General: In Additional Library Directories click on the arrow and press edit.... In the new window write the lines $(VIIM_LIBS) AND $(OPEN_NI_LIB) ($(VIIM_LIBS64) and $(OPEN_NI_LIB64) if on 64bits).
 * Configuration Properties
 * Linker
 * Input:In Additional Dependencies click on the arrow and press edit.... In the new window write the lines openNI.lib and ViiMd.lib(openNI64.lib and ViiM64d.lib if using ViiM 64bits). (notice that if you use ViiMd.lib you will use ViiM's Debug library and if you use ViiM.lib you will use the Release version - same logic for both 32 and 64 bits).