Click here to Skip to main content
15,904,023 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Virtual Inheritancae and Mutiple Inheritance Pin
Michael Dunn13-Mar-05 4:58
sitebuilderMichael Dunn13-Mar-05 4:58 
GeneralRe: Virtual Inheritancae and Mutiple Inheritance Pin
Gary R. Wheeler13-Mar-05 5:13
Gary R. Wheeler13-Mar-05 5:13 
GeneralRe: Virtual Inheritancae and Mutiple Inheritance Pin
Gary R. Wheeler13-Mar-05 5:01
Gary R. Wheeler13-Mar-05 5:01 
GeneralEscape key Pin
gdocherty13-Mar-05 1:13
gdocherty13-Mar-05 1:13 
GeneralRe: Escape key Pin
Graham Bradshaw13-Mar-05 2:19
Graham Bradshaw13-Mar-05 2:19 
GeneralRe: Escape key Pin
gdocherty13-Mar-05 3:41
gdocherty13-Mar-05 3:41 
GeneralRe: Escape key Pin
Michael Dunn13-Mar-05 5:03
sitebuilderMichael Dunn13-Mar-05 5:03 
GeneralBinary Data Manipulation Pin
humps12-Mar-05 19:53
humps12-Mar-05 19:53 
Hi All,
I have an arbitrarily large block of binary data (a sequence of bytes). I want to write a function:

int FindBit(BYTE* fisrtByte, int numBytes)

that can be passed a pointer to the start of the data (firstByte), and the number of bytes of data (numBytes), and find the first occurrence of a "1" bit. e.g., if I pass a pointer to the following 3 bytes of binary data:

00001101 10110101 10110101

I need the function to return 5 - because the first non-zero bit is in position 5.

Has anyone ever done something similar?
Is there an efficient way to do this ?

Wink | ;)

Thanks,

Neil Humphreys.
GeneralRe: Binary Data Manipulation Pin
gdocherty13-Mar-05 1:03
gdocherty13-Mar-05 1:03 
GeneralRe: Binary Data Manipulation Pin
gdocherty13-Mar-05 1:05
gdocherty13-Mar-05 1:05 
GeneralRe: Binary Data Manipulation Pin
Gary R. Wheeler13-Mar-05 3:41
Gary R. Wheeler13-Mar-05 3:41 
QuestionAny pro can help ??? Pin
woohoohoo12-Mar-05 18:10
woohoohoo12-Mar-05 18:10 
AnswerRe: Any pro can help ??? Pin
Ravi Bhavnani12-Mar-05 19:40
professionalRavi Bhavnani12-Mar-05 19:40 
GeneralRe: Any pro can help ??? Pin
Gary R. Wheeler13-Mar-05 3:55
Gary R. Wheeler13-Mar-05 3:55 
GeneralRe: Any pro can help ??? Pin
Ravi Bhavnani13-Mar-05 5:50
professionalRavi Bhavnani13-Mar-05 5:50 
GeneralRe: Any pro can help ??? Pin
woohoohoo13-Mar-05 18:04
woohoohoo13-Mar-05 18:04 
GeneralRe: Any pro can help ??? Pin
David Crow14-Mar-05 5:49
David Crow14-Mar-05 5:49 
GeneralRe: Any pro can help ??? Pin
Ravi Bhavnani14-Mar-05 5:54
professionalRavi Bhavnani14-Mar-05 5:54 
AnswerRe: Any pro can help ??? Pin
Michael Dunn13-Mar-05 5:07
sitebuilderMichael Dunn13-Mar-05 5:07 
Generalhelp on OnInitialUpdate Pin
the pink jedi12-Mar-05 17:18
the pink jedi12-Mar-05 17:18 
GeneralRe: help on OnInitialUpdate Pin
PJ Arends12-Mar-05 17:30
professionalPJ Arends12-Mar-05 17:30 
GeneralRe: help on OnInitialUpdate Pin
the pink jedi12-Mar-05 17:48
the pink jedi12-Mar-05 17:48 
GeneralRe: help on OnInitialUpdate Pin
Steve Mayfield12-Mar-05 18:37
Steve Mayfield12-Mar-05 18:37 
GeneralRe: help on OnInitialUpdate Pin
the pink jedi12-Mar-05 19:27
the pink jedi12-Mar-05 19:27 
GeneralRe: help on OnInitialUpdate Pin
Ravi Bhavnani12-Mar-05 19:44
professionalRavi Bhavnani12-Mar-05 19:44 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.