Results 1 to 2 of 2
  1. #1
    Our new friend needs to reach 10 posts to get to the next flight level ezycc's Avatar
    Join Date
    Nov 2009
    Location
    Kirkby, United Kingdom
    Posts
    6
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Problems reading offsets

    Hi

    I have just installed Lekseecon, and am running the fsuipc version, Im having some trouble reading variables using an external program. I can read normal FS values fine, but when I try and read a Lekseecon value it just shows 0, for example Ive set 797 in the ini file and its registering in the lekseecon_f but then when I try to read the value using my program it just shows 0.

    Heres my code, im using visual basic, any help would be much appreciated!

    Ive tried, integer, long, double, currency and non have worked?!?

    Code:
    Dim dwResult As Long
    Dim seatbelt As Integer
    
    Call FSUIPC_Read(&H31D, 1, VarPtr(seatbelt), dwResult)
    Call FSUIPC_Process(dwResult)
    
    Label2.Caption = seatbelt
    Thanks

    Chris

  2. #2
    2000+ Poster - Never Leaves the Sim kiek's Avatar
    Join Date
    Jan 2007
    Location
    Netherlands
    Posts
    2,200
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: Problems reading offsets

    Hi Chris,
    You find Var 797 at FSUIPC offset (hex) 931D (manual page 49). It looks like the offset you are using is not that one ...

    Nico