Jump to content
The simFlight Network Forums

cyberflygo

Members
  • Posts

    12
  • Joined

  • Last visited

Everything posted by cyberflygo

  1. I found the reason! I use FSInterrogate to read the 0x570 ,the value is 566473064448 HEX:83E46D0000 hex viewer offest 0001 0203 0405 0607 0x570 0000 6DE4 8300 0000 use the fsuipc read the frist part 0x570 ,value is E46D0000 ,read the second part 0x574 ,value is 83。 I don't know how to connect the two part into the rally value.
  2. Hi,peter. I have a problem while convert the Altitude of aircraft to feet. Example ,the Altitude of aircraft is 440 feet ,i read the 0x570 ,result is 3833856000, 3833856000*3.28084/(65536*65536)=2.92. read the gps Altitude (0x6020) also can't convert to a correct value. can you help me? thanks.
  3. Dear Pete: I'm doing a small software trying to use a camera to control view direction of FS2004. So I need to send view command to fs through FSUIPC。But I'm confusd when I find the description in the Offset table as below :( 3200 12 These locations operate the FSUIPC facility to send keystrokes to FS. For this to operate correctly the PC must be using Windows 98, ME or 2000. The facilities used just do not exist in Windows 95 nor NT. 3200 message (WM_KEYDOWN or WM_KEYUP) 3204 wParam for the message 3208 lParam for the message All 12 bytes must be written in one IPC write. (This feature is used in WideClient version 3.998 and later, when the [user] parameter "SendKeyPresses=Yes" is included in its .ini file, to relay all non-system (i.e. no Alt key) key presses it receives to the WideServer host). How to use offset 3200? Need I registe Widefs first? What are the messages? wParam ,lParam? Thanks ! :D a fs fan.
  4. hi,peter when I read the Heading 0x580,Ican't get the correct value.can you help me .FS2004 show heading is 340 . DWORD head; if (!FSUIPC_Read(0x580, 4, &head, &dwResult)||!FSUIPC_Process()) {} int heading= head*360/(65536*65536); Edit12->Text =heading; i track into .found the value of head is 3730953 .so 3730953*360/(65536*65536)<0,program error.
  5. thanks peter,I know the reason,but I still don't know how to translate the noamal Frequency into hex,For EXAMPLE:115.65=0x ?
  6. I want to modify the nav1 stby freq.so I writed the value to 0X311E,but after execute the program,I found the nav1 stby freq didn't changed at all. void __fastcall TForm1::Timer1Timer(TObject *Sender) { DWORD dwResult; char String[32], chTime[3]; BOOL fTimeOk = TRUE; unsigned long pdwResult; if (!dwClosed) { if (!FSUIPC_Read(0x238, 3, chTime, &dwResult) || !FSUIPC_Process(&dwResult)) fTimeOk = FALSE; char t[32]="1234"; FSUIPC_Write(0x311e, 2, &t, &pdwResult); //modify nav1 freq // Now display all the knowledge we've accrued: if (fTimeOk) { Label2->Caption = "OK"; sprintf(String, "%02d:%02d:%02d", chTime[0], chTime[1], chTime[2]); Label8->Caption = String; } else { Label2->Caption = "Failed"; } } }
  7. a new found! when i copy the HELLO.EXE program to the windows 2000 system. the HELLO.EXE running ! the program can show the fsuipc message. maybe the problem is in the operation system. why the WINDOWS xp CAN'T RUN ?
  8. thank you for your reply ,my system is windows xp. and you say"So, to connect, you use the code or library supplied." ,which library i should add to the program? now I used the BCB. the code is the sdk file's sample and I didn't modify anything.I don't know what made this error.
  9. 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
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.