Friday, December 4, 2009

Configuring Xerces-C++ XML Libraries with Visual Studio 2008

The latest release of Xerces c++ xml library is Xerces-C++ 3.0.1. Download the library from the apache website @ http://xerces.apache.org/xerces-c/download.cgi from any of the available mirrors.

Integrating Xerces-C++ XML Library with Visual Studio 2008

Integration involves 3 main steps. This makes the application utilize the facilities of Xerces- C++ xml libraries, and be fully functional.

1) Set the Library path:-

· Start Visual studio 2008 and open your project.

· Go to Tools > Options…

· On the popped-up ‘options’ window, towards left, select and expand the directory ‘Projects and Solutions’. In the expanded list select ‘VC++ Directories’.

· Now towards the right of ‘Options’ window, click on ‘Show directories for:’ dropdown list and select ‘Library files’.

· Now in the window below, include the path of the Xerces-C++ ‘lib’ directory (Example: C:\xerces-c-3.0.1-x86-windows-vc-8.0\xerces-c-3.0.1-x86-windows-vc-8.0\lib). To do this, click just below the last included path. With this a cursor appears, where we can type the path, or we can even include the path by clicking on the ellipsis button at the end of the line and browse to the Xerces ‘lib’ directory.

· Finally click ‘Ok’.

2) Set the Include path:-

· Follow the first 3 instructions of the previous step.

· Now towards the right of ‘Options’ window, click on ‘Show directories for:’ dropdown list and select ‘Include files’.

· Now in the window below, include the path of the Xerces ‘include’ folder (Example: C:\xerces-c-3.0.1-x86-windows-vc-8.0\xerces-c-3.0.1-x86-windows-vc-8.0\include). To do this, click just below the last included path. With this a cursor appears, where we can type the path, or we can even include the path by clicking on the ellipsis button at the end of the line and browse to the ‘include’ directory.

· Finally click ‘Ok’.

3) Copy the two DLL’s, ‘xerces-c_3_0.dll’ and ‘xerces-c_3_0D.dll’ available in “bin” folder (Example: C:\xerces-c-3.0.1-x86-windows-vc-8.0\xerces-c-3.0.1-x86-windows-vc-8.0\bin) and put It in the system’s Windows folder. (i.e. C:\Windows)

Build and Run the application.

1 comment:

Jason Statham said...

I Bed your articles guys have it up. best wordpress themes