Setup
First, generate your library from your XML Schema. This generates a .dsp file for Visual C++ 6.0 as well as .vcproj files for Visual C++ 7.0 and Visual C++ 7.1. Then you can create a new project for your application using Microsoft Visual Studio 6, .NET 2002 or .Net 2005.

Using a shared CRT
This demonstrates how to prevent heap asserts when objects are cleaned up. (See also GPF when using strings).
In debug the CRT keeps track of all the memory it allocated, when memory is deleted it checks to see it actually allocated it. If it didn't it asserts. If you link your project statically against the CRT ib (/ML, /MLd, /MT, /MTd), then the dll, and the exe have their own version of the CRT, and thus 2 lists of memory that have been allocated. A problem arises if memory is allocated in one and freed in another. Linking against the shared CRT DLL (/MD,/MDd) solves this problem.

Change C++ Compiler Options
For an Exe
Debug - /MLd to /MDd
Release - /ML to /MD

For a Dll
Debug - /MTd to /MDd
Release - /MT to /MD

Also you will need to Enable Run-Time Type Information (RTTI):
Add the /GR compile option to all builds

Linking to your Libray
In order to use the generated code you must link to it, and also to our runtime library. This section describes the libraries you must link to and the library paths that need setting up.
NOTE: When you build your library from the generated code, Visual Studio defaults to Static Debug as Active Configuration.

Include Files
Your new project needs access to the standard header files we distribute, and the header files that you generated (when you ran the wizard).

Ensure visual studio can see the following can see the include paths
[Liquid Technologies install dir]\XmlDataBinder16\Redist16\cpp\include
[The path where you generated you XML Binding Library to]

Linking
For Static Debug

DebugStatic_vc60/TheGeneratedLibraryYouJustMadeSD_vc60.lib (For Visual Sudio 6.0)
DebugStatic_vc71/TheGeneratedLibraryYouJustMadeSD_vc71.lib (For Visual Sudio .Net 2003)
DebugStatic_vc80/TheGeneratedLibraryYouJustMadeSD_vc80.lib (For Visual Sudio .Net 2005)

For Static Release

ReleaseStatic_vc60/TheGeneratedLibraryYouJustMadeS_vc60.lib (For Visual Sudio 6.0)
ReleaseStatic_vc71/TheGeneratedLibraryYouJustMadeS_vc71.lib (For Visual Sudio .Net 2003)
ReleaseStatic_vc80/TheGeneratedLibraryYouJustMadeS_vc80.lib (For Visual Sudio .Net 2005)

For Debug

[Liquid Technologies install dir]\XmlDataBinder16\Redist16\cpp\lib\LtXmlLib16D_vc60.lib (For Visual Sudio 6.0)
[Liquid Technologies install dir]\XmlDataBinder16\Redist16\cpp\lib\LtXmlLib16D_vc71.lib (For Visual Sudio .Net 2003)
[Liquid Technologies install dir]\XmlDataBinder16\Redist16\cpp\lib\LtXmlLib16D_vc80.lib (For Visual Sudio .Net 2005)
and
Debug_vc60/TheGeneratedLibraryYouJustMadeD_vc60.lib (For Visual Sudio 6.0)
Debug_vc71/TheGeneratedLibraryYouJustMadeD_vc71.lib (For Visual Sudio .Net 2003)
Debug_vc80/TheGeneratedLibraryYouJustMadeD_vc80.lib (For Visual Sudio .Net 2005)

For Release

[Liquid Technologies install dir]\XmlDataBinder16\Redist16\cpp\lib\LtXmlLib16_vc60.lib (For Visual Sudio 6.0)
[Liquid Technologies install dir]\XmlDataBinder16\Redist16\cpp\lib\LtXmlLib16_vc71.lib (For Visual Sudio .Net 2003)
[Liquid Technologies install dir]\XmlDataBinder16\Redist16\cpp\lib\LtXmlLib16_vc80.lib (For Visual Sudio .Net 2005)
and
Release_vc60/TheGeneratedLibraryYouJustMade_vc60.lib (For Visual Sudio 6.0)
Release_vc71/TheGeneratedLibraryYouJustMade_vc71.lib (For Visual Sudio .Net 2003)
Release_vc80/TheGeneratedLibraryYouJustMade_vc80.lib (For Visual Sudio .Net 2005)

For Static Unicode Debug

UnicodeDebugStatic_vc60/TheGeneratedLibraryYouJustMadeSUD_vc60.lib (For Visual Sudio 6.0)
UnicodeDebugStatic_vc71/TheGeneratedLibraryYouJustMadeSUD_vc71.lib (For Visual Sudio .Net 2003)
UnicodeDebugStatic_vc80/TheGeneratedLibraryYouJustMadeSUD_vc80.lib (For Visual Sudio .Net 2005)

For Static Unicode Release

UnicodeStatic_vc60/TheGeneratedLibraryYouJustMadeSU_vc60.lib (For Visual Sudio 6.0)
UnicodeStatic_vc71/TheGeneratedLibraryYouJustMadeSU_vc71.lib (For Visual Sudio .Net 2003)
UnicodeStatic_vc80/TheGeneratedLibraryYouJustMadeSU_vc80.lib (For Visual Sudio .Net 2005)

For Unicode Debug

[Liquid Technologies install dir]\XmlDataBinder16\Redist16\cpp\lib\LtXmlLib16UD_vc60.lib (For Visual Sudio 6.0)
[Liquid Technologies install dir]\XmlDataBinder16\Redist16\cpp\lib\LtXmlLib16UD_vc71.lib (For Visual Sudio .Net 2003)
[Liquid Technologies install dir]\XmlDataBinder16\Redist16\cpp\lib\LtXmlLib16UD_vc80.lib (For Visual Sudio .Net 2005)
and
UnicodeDebug_vc60/TheGeneratedLibraryYouJustMadeUD_vc60.lib (For Visual Sudio 6.0)
UnicodeDebug_vc71/TheGeneratedLibraryYouJustMadeUD_vc71.lib (For Visual Sudio .Net 2003)
UnicodeDebug_vc80/TheGeneratedLibraryYouJustMadeUD_vc80.lib (For Visual Sudio .Net 2005)

For Unicode Release

[Liquid Technologies install dir]\XmlDataBinder16\Redist16\cpp\lib\LtXmlLib16U_vc60.lib (For Visual Sudio 6.0)
[Liquid Technologies install dir]\XmlDataBinder16\Redist16\cpp\lib\LtXmlLib16U_vc71.lib (For Visual Sudio .Net 2003)
[Liquid Technologies install dir]\XmlDataBinder16\Redist16\cpp\lib\LtXmlLib16U_vc80.lib (For Visual Sudio .Net 2005)
and
Unicode_vc60/TheGeneratedLibraryYouJustMadeU_vc60.lib (For Visual Sudio 6.0)
Unicode_vc71/TheGeneratedLibraryYouJustMadeU_vc71.lib (For Visual Sudio .Net 2003)
Unicode_vc80/TheGeneratedLibraryYouJustMadeU_vc80.lib (For Visual Sudio .Net 2005)

Running the code
Your new project needs access to the standard Liquid Technologies Runtime dll, and the dll that you compiled from the new XML Data Binding component you just generated.


Ensure the dlls are on the path or in the same directory as the target file.

For Static Debug
[Liquid Technologies install dir]\XmlDataBinder16\Redist16\cpp\bin\LtXmlLib16D_vc60.dll (For Visual Sudio 6.0)
[Liquid Technologies install dir]\XmlDataBinder16\Redist16\cpp\bin\LtXmlLib16D_vc71.dll (For Visual Sudio .Net 2003)
[Liquid Technologies install dir]\XmlDataBinder16\Redist16\cpp\bin\LtXmlLib16D_vc80.dll (For Visual Sudio .Net 2005)

For Static Release
[Liquid Technologies install dir]\XmlDataBinder16\Redist16\cpp\bin\LtXmlLib16_vc60.dll (For Visual Sudio 6.0)
[Liquid Technologies install dir]\XmlDataBinder16\Redist16\cpp\bin\LtXmlLib16_vc71.dll (For Visual Sudio .Net 2003)
[Liquid Technologies install dir]\XmlDataBinder16\Redist16\cpp\bin\LtXmlLib16_vc80.dll (For Visual Sudio .Net 2005)

For Debug
[Liquid Technologies install dir]\XmlDataBinder16\Redist16\cpp\bin\LtXmlLib16D_vc60.dll (For Visual Sudio 6.0)
[Liquid Technologies install dir]\XmlDataBinder16\Redist16\cpp\bin\LtXmlLib16D_vc71.dll (For Visual Sudio .Net 2003)
[Liquid Technologies install dir]\XmlDataBinder16\Redist16\cpp\bin\LtXmlLib16D_vc80.dll (For Visual Sudio .Net 2005)
and
Debug_vc60/TheGeneratedLibraryYouJustMadeD_vc60.lib (For Visual Sudio 6.0)
Debug_vc71/TheGeneratedLibraryYouJustMadeD_vc71.lib (For Visual Sudio .Net 2003)
Debug_vc80/TheGeneratedLibraryYouJustMadeD_vc80.lib (For Visual Sudio .Net 2005)

For Release
[Liquid Technologies install dir]\XmlDataBinder16\Redist16\cpp\bin\LtXmlLib16_vc60.dll (For Visual Sudio 6.0)
[Liquid Technologies install dir]\XmlDataBinder16\Redist16\cpp\bin\LtXmlLib16_vc71.dll (For Visual Sudio .Net 2003)
[Liquid Technologies install dir]\XmlDataBinder16\Redist16\cpp\bin\LtXmlLib16_vc80.dll (For Visual Sudio .Net 2005)
and
Release_vc60/TheGeneratedLibraryYouJustMade_vc60.lib (For Visual Sudio 6.0)
Release_vc71/TheGeneratedLibraryYouJustMade_vc71.lib (For Visual Sudio .Net 2003)
Release_vc80/TheGeneratedLibraryYouJustMade_vc80.lib (For Visual Sudio .Net 2005)

For Unicode Static Debug
[Liquid Technologies install dir]\XmlDataBinder16\Redist16\cpp\bin\LtXmlLib16UD_vc60.dll (For Visual Sudio 6.0)
[Liquid Technologies install dir]\XmlDataBinder16\Redist16\cpp\bin\LtXmlLib16UD_vc71.dll (For Visual Sudio .Net 2003)
[Liquid Technologies install dir]\XmlDataBinder16\Redist16\cpp\bin\LtXmlLib16UD_vc80.dll (For Visual Sudio .Net 2005)

For Unicode Static Release
[Liquid Technologies install dir]\XmlDataBinder16\Redist16\cpp\bin\LtXmlLib16U_vc60.dll (For Visual Sudio 6.0)
[Liquid Technologies install dir]\XmlDataBinder16\Redist16\cpp\bin\LtXmlLib16U_vc71.dll (For Visual Sudio .Net 2003)
[Liquid Technologies install dir]\XmlDataBinder16\Redist16\cpp\bin\LtXmlLib16U_vc80.dll (For Visual Sudio .Net 2005)

For Unicode Debug
[Liquid Technologies install dir]\XmlDataBinder16\Redist16\cpp\bin\LtXmlLib16UD_vc60.dll (For Visual Sudio 6.0)
[Liquid Technologies install dir]\XmlDataBinder16\Redist16\cpp\bin\LtXmlLib16UD_vc71.dll (For Visual Sudio .Net 2003)
[Liquid Technologies install dir]\XmlDataBinder16\Redist16\cpp\bin\LtXmlLib16UD_vc80.dll (For Visual Sudio .Net 2005)
and
UnicodeDebug_vc60/TheGeneratedLibraryYouJustMadeUD_vc60.lib (For Visual Sudio 6.0)
UnicodeDebug_vc71/TheGeneratedLibraryYouJustMadeUD_vc71.lib (For Visual Sudio .Net 2003)
UnicodeDebug_vc80/TheGeneratedLibraryYouJustMadeUD_vc80.lib (For Visual Sudio .Net 2005)

For Unicode Release
[Liquid Technologies install dir]\XmlDataBinder16\Redist16\cpp\bin\LtXmlLib16U_vc60.dll (For Visual Sudio 6.0)
[Liquid Technologies install dir]\XmlDataBinder16\Redist16\cpp\bin\LtXmlLib16U_vc71.dll (For Visual Sudio .Net 2003)
[Liquid Technologies install dir]\XmlDataBinder16\Redist16\cpp\bin\LtXmlLib16U_vc80.dll (For Visual Sudio .Net 2005)
and
UnicodeRelease_vc60/TheGeneratedLibraryYouJustMadeU_vc60.lib (For Visual Sudio 6.0)
UnicodeRelease_vc71/TheGeneratedLibraryYouJustMadeU_vc71.lib (For Visual Sudio .Net 2003)
UnicodeRelease_vc80/TheGeneratedLibraryYouJustMadeU_vc80.lib (For Visual Sudio .Net 2005)

 

© 2001-2010 Liquid Technologies Limited. All rights reserved. Privacy Statement