Communicating With Tomtom Navigator From C; Introduction; Supported Api Calls; Int Getsdkversioninfov01( Tnavversioninfov01& Aversioninfo) - TomTom Navigator SDK Installation And Use Manual

Version 3.0 build 193
Table of Contents

Advertisement

6. Communicating with TomTom

6.1. Introduction

This SDK allows third−party application developers to communicate with TomTom Navigator.
The SDK comes with a library that allows external applications to communicate with TomTom
Navigator. The first version of TomTom Navigator to fully support this library is 1.42.
To use the library, link the executable C++ application with the library "TTNCom.lib" (this library is
provided for ARM, MIPS and SH3), and include the header file TTNCom.h.
The library contains a class CTomTomNavigatorCom with static methods which can perform the
communication request.

6.2. Supported API calls

When communicating with TomTom Navigator, the library will first start an instance of the application
if there isn't one already running. Thus it should never be necessary to start TomTom Navigator from an
external application explicitly.
Should it be necessary to close TomTom Navigator from an external application, the following code can
be used:
Example:
The following function will try to exit TomTom Navigator.
BOOL QuitNavigator()
{
HWND hwnd = ::FindWindow(NULL, TEXT("TomTom Navigator"));
if (hwnd)
{
::PostMessage(hwnd,WM_QUIT,0,0);
return TRUE;
}
return FALSE;
}
Should the application become completely unresponsive, it can be killed as follows:
VOID KillNavigator()
{
HWND hwnd = ::FindWindow(NULL, TEXT("TomTom Navigator"));
if (hwnd)
{
::PostMessage(hwnd,WM_DESTROY,0,0);
}
}
The function calls currently supported are:
6.2.1. INT GetSdkVersionInfoV01( TNavVersionInfoV01& aVersionInfo)
Command Parameters:
Navigator from C++
27

Advertisement

Table of Contents
loading

Table of Contents