#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_GetDayNight::WindowProc ( UINT message , WPARAM wParam , LPARAM lParam )
{
{
{
LRESULT read_suc = RI_GetDayNight_ReadData( lParam, data );
else
{
TRACE(TEXT("Day Mode is set"));
else
TRACE(TEXT("Night Mode is set"));
}
}
}
return CDialog::WindowProc( message, wParam, lParam );
}
void CDlgMFC_GetDayNight::foo()
{
LPARAM id = GetUniqueID();
else
}