Jump to content
The simFlight Network Forums

Problem with Bit Operation


Delphi

Recommended Posts

Hi Paul,

my problems seem to find no end. Bit operation does not work with FSUIPC Client DLL anymore. Setting offsets to values works.

 

For years I used the following operation to manipulate bits:

 

Dim PMRecallMomentary As Offset(Of BitArray) = New FSUIPC.Offset(Of BitArray)(&H56F9, 1)

PMRecallMomentary.Value.Set(1, True)

 

Worked perfect. Now the bits do not change anymore.

 

For further tests I used a slightly different code, as you propose in your documentation:

 

Dim lights As Offset(Of BitArray) = New FSUIPC.Offset(Of BitArray)(&HD0C, 2)

Me.lights.Value(5) = True

 

Also does not work. Tried the followng work-around:

 

Lights.Value = Lights.Value Or (2 ^ x)

 

In that way it works. However, the work-around is not an option, because of to too many required code changes.

 

 

Environment:

- VB 2010

- .Net framework: v4.0.30319

- FSUIPC client DLL version: 3.0.5898.3

 

I hope you can help me again.

 

Ruediger

Link to comment
Share on other sites

Hi Paul,

the new DLL seems to have an issue. The name space does not get imported. All offset definitions are shown as error in vb.net.

 

Replacing the FSUIPCClient dll with the version form 26.02.2016 the name space is imported.

 

Ruediger

Link to comment
Share on other sites

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

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • 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.