Prosody guide: building applications with Visual Studio

There are two ways to use Prosody TiNG on Microsoft Windows:

  1. Statically linking the API libraries
  2. Dynamically linking the API libraries

These instructions assume you are using Microsoft Development Environment 2002 Version 7 or one of the later versions.

Statically Linking the APIs

Dynamically linking the APIs:

Note that if you link with a TiNG.lib file but run the application such that Windows finds an incompatible TiNG.dll and tries to use it, you may get errors complaining that functions were not found. This is because the .DLL and .LIB files use a mechanism to protect against incompatible changes. See also Prosody TiNG: Using the API DLL for further information.

Compiling the Test Programs

You can compile the test programs either statically or dynamically as described above.