Using the Windows SDK

  1. Download the SDK installer and run it; install the SDK to any location you like
  2. Create a new Visual Studio Solution and add at least one .cpp file
  3. Right-click the project, go to properties and choose 'All configuration' in the leftmost dropdown list
  4. Go to C++, General and add the SDK 'Include' directory as an additional include directory here:
  5. Go to Linker, Input and add the library files in the SDK 'Lib' folder as dependencies:
  6. Set the project to the 'Release' configuration, add some code, and build
  7. Copy all .dll and .pdb files in the SDK 'Bin' directory to the directory where your application binary is placed (Release/-directory)
  8. Done!

Example code to test whether the SDK is installed and configured in VC++ correctly:

#include <EP/include/ependpoint.h>
#include <TJScript/include/tjscript.h> 
#include <TJNP/include/tjsocket.h>
#include <TJShow/include/tjshow.h>
#include <TJScout/include/tjscout.h>
#include <TJSharedUI/include/tjsharedui.h>
#include <TJDB/include/tjdb.h>
#include <TinyXML/tinyxml.h>

using namespace tj::shared;

int main(int argc, char** argv) {
	Log::SetLogToConsole(true);
	Log::Write(L"SDKTest/Main", L"Starting up!");
	return 0;
}
 
usingsdkwindows.txt · Last modified: 2010/01/16 16:39 (external edit)
 
© Pixelspark, 2009-2012