help with the fsuipc sample
I want to write some application to interface to fs2004,when I run the FSUIPC SDK 28th Release sample(\UIPC_SDK_BCB5) .the pragram running
result show "Incorrect version of FSUIPC, or not FSUIPC", "Failed to open link to FSUIPC". I CHECK the Code ,found this program need to find
the "UIPCMAIN ",
// Connect via FSUIPC, which is known to be FSUIPC's own
// and isn't subject to user modificiation
m_hWnd = FindWindowEx(NULL, NULL, "UIPCMAIN", NULL);
if (!m_hWnd)
{ // If there's no UIPCMAIN, we may be using WideClient
// which only simulates FS98
m_hWnd = FindWindowEx(NULL, NULL, "FS98MAIN", NULL);
fWideFS = TRUE;
if (!m_hWnd)
{ *pdwResult = FSUIPC_ERR_NOFS;
return FALSE;
}
}
My question is,what is the UIPCMAIN,what should I do to connect to fsuipc.
I had install fsuipc3.8 into fs2004 and registered sucessful. log file as follow:
********* FSUIPC, Version 3.80 by Pete Dowson *********
Running on Windows Version 5.1 Build 2600 Service Pack 2
Verifying Certificate for "G:\Flight Simulator 9\MODULES\FSUIPC.dll" now ...
SUCCESS! Signature verifies okay!
Running inside FS2004(original release)
User Name=
User Addr=
FSUIPC Key is provided
WIDEFS not user registered, or expired
Module base=61000000
ClassOptions: UIPCMAIN=FF7F, FS98MAIN=FF7F, FS2KMAIN=FF5E
WeatherOptions(Orig)=40003605[40003605]
InitDelay: 0 seconds
WeatherReadInterval=4
LogOptions=00000001
DebugStatus=15
8094 System time = 14:53:13
8391 G:\Flight Simulator 9\
8406 G:\Flight Simulator 9\fs9.exe
13906 System time = 14:53:19, FS2004 time = 12:00:00 (00:00Z)
17500 FLIGHTS\OTHER\FLTSIM.flt
17578 AIRCRAFT\c172\Cessna172SP.air
17828 Aircraft="Cessna Skyhawk 172SP"
33047 Advanced Weather Interface Enabled
Regards