There are two ways to use Prosody TiNG on Microsoft Windows:
These instructions assume you are using Microsoft Development Environment 2002 Version 7 or one of the later versions.
Properties...
option from the
Project
menu
C/C++
/ Code Generation
items from the tree on the left
Run-time library
to Multithreaded
(Debug Multithreaded
if in debug mode)
C/C++
/ General
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).
C/C++
/ Preprocessor
Preprocessor definitions
box, add
TiNGTYPE_WINNT
File | When required |
---|---|
TiNG/apilib/TiNGcore.c
| Needed if any Prosody functions are used. |
TiNG/apilib/prosody_x.c
| Needed if any Prosody X card or Prosody S 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 and Linux).
|
Properties...
option from the
Project
menu
C/C++
/ Code Generation
items from the tree on the left
Run-time library
to Multithreaded DLL
C/C++
/ General
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).
C/C++
/ Preprocessor
Preprocessor definitions
box, add
TiNGTYPE_WINNT,TiNG_USE_DLL
Linker
/ Input
Additional dependencies
box add TiNG.lib
Options...
option from the
Tools
menu
Projects / VC++Directories
tab
Library files
from the pull down list
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_V6
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 #include
s.
TiNG\libutil
, TiNG\libutil\WINNT
, or
TiNG\test\Testlib
directories.