Sends NMEA-Data over RI to the navigation software.
The data sentences "$GPGGA", "$GPRMC" and "$GPVTG" are mandatory.
Be sure that the date in the sentences is correct, because it's needed by some modules. The setences has to be complete, substrings are not supported. Also the NMEA strings must have a correct checksum, overwise they will be discarded.
Don't use this method together with a GPS-Device, the signals would be mixed!
#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_GPSLog::WindowProc ( UINT message , WPARAM wParam , LPARAM lParam )
{
{
}
return CDialog::WindowProc( message, wParam, lParam );
}
void CDlgMFC_GPSLog::foo()
{
L"$GPGGA,171710.350,4900.5533,N,00826.3949,E,1,05,3.5,168.0,M,,,,0000*02\r\n
$GPGLL,4900.5533,N,00826.3949,E,171710.350,A*35\r\n
$GPRMC,171710.350,A,4900.5533,N,00826.3949,E,0.0,175.8,261103,,*0E\r\n
$GPVTG,175.8,T,,M,0.0,N,0.0,K*6B\r\n
$GPGGA,171711.350,4900.5533,N,00826.3950,E,1,05,3.5,168.5,M,,,,0000*0E\r\n");
LPARAM id = GetUniqueID();
return;
else
}