There are two ways to use Prosody TiNG on Microsoft Windows:
These instructions assume you are using Microsoft Developer Studio 97 (Visual C++ 5.0) or one of the later versions which all use the same layout for the project settings. If you are using Visual C++ 7 or later, please see Prosody guide: building applications with Visual Studio 7
Settings... option from the
Project menu
C/C++ tab
Code Generation from the Category box
Use run-time library to Multithreaded
(Debug Multithreaded if in debug mode)
Category to Preprocessor
Additional include directories box add the location
of the TiNG include directory (which will be
C:\Program Files\Aculab\TiNG\include unless you selected
a different location when installing the distribution).
Additional include directories box add the location of the
TiNG include/libutil/WINNT directory (which will be
C:\Program Files\Aculab\TiNG\include\libutil\WINNT unless
you selected a different location when installing the distribution).
Preprocessor definitions box, add
TiNGTYPE_WINNT.
| File | When required |
|---|---|
TiNG/apilib/TiNGcore.c
| Needed if any Prosody functions are used. |
TiNG/apilib/prosody_pci.c
| Needed if any Prosody PCI cards are opened |
TiNG/apilib/prosody_s.c
| Needed if the Prosody S virtual card is opened |
TiNG/highapi/smclib.c
| Needed if any high level conferencing Prosody functions are used. |
TiNG/highapi/smhlib.c
| Needed if any high level replay and record Prosody functions are used. |
TiNG/highapi/smbfhlib.c
| Needed if any BFILE high level replay and record Prosody functions are used. |
TiNG/highapi/smwavlib.c
| Needed if any high level WAV file replay and record Prosody functions are used. |
TiNG/highapi/smbfwavlib.c
| Needed if any high level WAV BFILE replay and record Prosody functions are used. |
TiNG/libutil/WINNT/pthread.c
| Used by smhlib.c. Also needed if you
use POSIX pthreads emulation
(which allows you to use the same threads API on
Windows, Linux and Solaris).
|
Settings... option from the
Project menu
C/C++ tab
Code Generation from the Category box
Use run-time library to Multithreaded DLL
(Debug Multithreaded DLL if in debug mode)
Category to Preprocessor
Additional include directories box add the location
of the TiNG include directory (which will be
C:\Program Files\Aculab\TiNG\include unless you selected
a different location when installing the distribution).
Additional include directories box add the location of the
TiNG include/libutil/WINNT directory (which will be
C:\Program Files\Aculab\TiNG\include\libutil\WINNT unless
you selected a different location when installing the distribution).
Preprocessor definitions box, add
TiNGTYPE_WINNT,TiNG_USE_DLL
Link tab
Input from the Category box
Object/library modules box add TiNG.lib
Options... option from the
Tools menu
Directories tab
Library files from the Show
directories for box
TiNG.lib file and the
TiNG.dll file. They can be in the same place (which
will be C:\Program Files\Aculab\TiNG\lib\gen-WINNT unless you
selected a different location when installing the distribution).
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.
You can compile the test programs either statically or dynamically as described above.
Win32 Console Application project
.c file, which you would like to compile
.c source file for the
library headers it #includes.
TiNG\libutil, TiNG\libutil\WINNT, or
TiNG\test\Testlib
directories.