#define USE_LOADLIBRARY
#include "TNSRemoteInterfaceDll.h"
LPARAM GetUniqueID()
{
static LPARAM id = 0;
if (++id == 0) ++id;
return id;
}
inline LRESULT RI_MESSAGE( const UINT request, HWND h_client, LPARAM id )
{
PostMessage(
RI_GetTNS(), request, WPARAM(h_client),
id );
}
LRESULT CDlgMFC_GPSInfo::WindowProc ( UINT message , WPARAM wParam , LPARAM lParam )
{
{
{
TRACE(TEXT(
"Longitude: %i"), data.
m_lon);
TRACE(TEXT(
"Latitude: %i"), data.
m_lat);
TRACE(TEXT(
"Course: %i"), data.
m_course);
TRACE(TEXT(
"Satellite Date: %s"), data.
m_date);
TRACE(TEXT(
"Satellite Time: %s"), data.
m_time);
TRACE(TEXT(
"Last Valid Pos: %i"), data.
m_lastdata);
{
TRACE(TEXT(
"Current Street: %s"), data.
m_street);
TRACE(TEXT(
"Target: %s"), data.
m_target);
TRACE(TEXT(
"Roadmatched Mercator Pos: %s"), data.
n_mercator);
}
}
}
return CDialog::WindowProc( message, wParam, lParam );
}
void CDlgMFC_GPSInfo::foo()
{
LPARAM id = GetUniqueID();
else
}