BoXon Posted July 25, 2006 Report Share Posted July 25, 2006 Hi! I'm new at VB, so this probkem may be very easy. :D But, what i'm trying to do is to get the numbers of engines at the aircraft. But when i try to make the EXE or testdrive the program i get "Complie error: Expected: list separator or )"! Private Sub Command1_Click() Dim numbersOfEng As Long Dim dwResult As Long Call FSUIPC_Read(&0AEC, 2, VarPtr(numbersOfEng), dwResult) Call FSUIPC_Process(dwResult) lblnumbersOfEng.Caption = numbersOfEng End Sub It seems like it don't liek the "AEC" part in the FSUIPC_Read(). What to do about it? Link to comment Share on other sites More sharing options...
Pete Dowson Posted July 25, 2006 Report Share Posted July 25, 2006 I'm new at VB, so this probkem may be very easy. :D I don't know VB at all. sorry. Is the correct hexadecimal format "&0AEC" or "$0AEC", or even "&H0AEC"? Seems different in different reports. You need to check the VB reference manuals I think. Pete Link to comment Share on other sites More sharing options...
Mayhem Posted July 25, 2006 Report Share Posted July 25, 2006 Change this: FSUIPC_Read(&0AEC, 2, VarPtr(numbersOfEng), dwResult) To this: Call FSUIPC_Read(&H0AEC, 2, VarPtr(numbersOfEng), dwResult) when you goto a new line or finish the "call" it will correct it to "&HAEC" basiclly when entering "any" offset type &H in front of it... this will "auto" correct & remove the "0" in front if needed..... Link to comment Share on other sites More sharing options...
BoXon Posted July 25, 2006 Author Report Share Posted July 25, 2006 Change this: FSUIPC_Read(&0AEC, 2, VarPtr(numbersOfEng), dwResult) To this: Call FSUIPC_Read(&H0AEC, 2, VarPtr(numbersOfEng), dwResult) when you goto a new line or finish the "call" it will correct it to "&HAEC" basiclly when entering "any" offset type &H in front of it... this will "auto" correct & remove the "0" in front if needed..... Thank you very much! :D Link to comment Share on other sites More sharing options...
BoXon Posted July 25, 2006 Author Report Share Posted July 25, 2006 I'm new at VB, so this probkem may be very easy. :D I don't know VB at all. sorry. Is the correct hexadecimal format "&0AEC" or "$0AEC", or even "&H0AEC"? Seems different in different reports. You need to check the VB reference manuals I think. Pete Thank you too! :) Link to comment Share on other sites More sharing options...
Mayhem Posted July 25, 2006 Report Share Posted July 25, 2006 If i aint working on a project, then at least something like this is putting my brain to use... always glad to help when i can Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now