SimStar001 Posted March 10, 2014 Report Posted March 10, 2014 Hello Pete, I´ve got a short question. How to read a special bit of an offset? I am using this code: if FSUIPC_read($7397,1,@Value,dwresult) then if FSUIPC_Process(dwResult) then result := Value; But how to get single bits of this offest? Best Regards Marco
Pete Dowson Posted March 10, 2014 Report Posted March 10, 2014 I´ve got a short question. How to read a special bit of an offset? I am using this code: if FSUIPC_read($7397,1,@Value,dwresult) then if FSUIPC_Process(dwResult) then result := Value; But how to get single bits of this offest? You have all of the bits in the resulting 1 byte Value. A byte contains all 8 bits. The rest is simple programming! Test them as you wish -- if you don't know how to use logical functions in a program (And, Or, etc) I suggest you get a book on Delphi. I don't know it so cannot give you examples. But to learn about numbers, bits and bytes please see the FAQ subforum -- there's a thread on this subject. Pete
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now