TeamTalk 4 C-API DLL  Version 4.5A
Client Examples

In the directory "Client/C-API/Examples" of the SDK there are examples of how to use the TeamTalk 4 C-API DLL. Note that on Windows Vista and Windows 7 users typically do not have access to writing files to the Program Files directory so copy the examples to a directory with write access. Remember to include the TeamTalk 4 DLL, header file and import library as well to the new location.

C++ client examples:

Qt Client Example (TeamTalk4)

In this guide is shown how to build the TeamTalk Qt client example using the "Qt SDK for Windows" which can be downloaded here. Once installed open the "Qt Command Prompt" from the Qt start-menu group and switch to the "Client/C-API/Examples/qtTeamTalk4" folder. Afterwards run the qmake command and then build the example using mingw32-make.exe as shown in the picture below:

qtbuild.png
Qt build process

Once the build has completed switch to the debug subdirectory and add the "Client/C-API" directory to the PATH variable (so the TeamTalk4.dll can be loaded). Then run TeamTalk4.exe as shown in the picture below:

qtrun.png
Run compiled executable

MFC Client Example (TeamTalkMFC)

The SDK also has a MFC example which is located in the directory "Client/C-API/Examples/TeamTalkMFC". Note that this example is quite limited since it can only connect to a server, login, join a channel, transmit audio and display video. It is not possible to capture video in this example and also it doesn't include options to administrate the server. For these features it is advised to investigate the Qt Client Example (TeamTalk4).

Server Log Console Example (ttserverlog)

The SDK's "Client/C-API/Examples/ttserverlog" directory contains a simple console application which stores all audio sent to the server to a specific directory on disk. It also displays all user text chat sessions, file uploads, etc. This example gives a good idea of how events are processed in TeamTalk when using TT_InitTeamTalkPoll and events are not posted to a window handle.