Skittles Posted September 2, 2011 Report Share Posted September 2, 2011 Hello Mr. Dowson, I don't know who else to turn to. I know you're not familiar with VB but if something stands out... I'd like your thoughts if you have the time and inclination. I'm using VB to read FS Values through FSUIPC. I had another read section working once during an experiment, but now I'm getting none or strange results, so I can only conclude I've changed something somewhere. I've been double checking, making sure I'm using the correct Data Types If FSUIPC_Read(&H2B00, 8, VarPtr(RetResult), dwResult) Then At first glance, does this look right? I have the RetResult and dwResult as Long Here's the function... Function FSUIPC_Read(dwOffset As Long, dwSize As Long, pDest As Long, ByRef dwResult As Long) As Boolean The value I'm getting from RetResult is 2122637696 when the gryo is 359.65686 OR -1411192591 the the Gyro is 0.58321 I don't know what the VarPtr() does, but I get zero if I don't use it. Do you need to see all of the codes to get the context? I'd appreciate any ideas. Thanks for your time and efforts, Joe Link to comment Share on other sites More sharing options...
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 account
Already have an account? Sign in here.Sign In Now