Click here to Skip to main content
15,887,214 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: LPTSTR problem Pin
Joe Woodbury27-Mar-09 7:10
professionalJoe Woodbury27-Mar-09 7:10 
GeneralRe: LPTSTR problem Pin
CPallini27-Mar-09 7:17
mveCPallini27-Mar-09 7:17 
QuestionHelp with Binary Pin
FISH78627-Mar-09 0:11
FISH78627-Mar-09 0:11 
AnswerRe: Help with Binary Pin
Michael Schubert27-Mar-09 0:20
Michael Schubert27-Mar-09 0:20 
GeneralRe: Help with Binary Pin
FISH78627-Mar-09 0:36
FISH78627-Mar-09 0:36 
GeneralRe: Help with Binary Pin
Michael Schubert27-Mar-09 0:40
Michael Schubert27-Mar-09 0:40 
QuestionRe: Help with Binary Pin
CPallini27-Mar-09 0:43
mveCPallini27-Mar-09 0:43 
AnswerRe: Help with Binary Pin
Roger Stoltz27-Mar-09 0:33
Roger Stoltz27-Mar-09 0:33 
FISH786 wrote:
What am I missing?


Well, you need to know what the different operations do and how to use them when building your algorithm. This is a good exercise.

Some hints:
You are e.g. right shifting value by bit steps and put the result in mask. Unless bit equals zero, value and mask will most likely be different. Then you check if mask and value are the same.... Suspicious | :suss:
It also looks like you're starting from the right (with the least significant bit) in value, but starts from the left in the string....


"It's supposed to be hard, otherwise anybody could do it!" - selfquote
"High speed never compensates for wrong direction!" - unknown


GeneralRe: Help with Binary Pin
FISH78627-Mar-09 1:31
FISH78627-Mar-09 1:31 
AnswerRe: Help with Binary Pin
CPallini27-Mar-09 0:35
mveCPallini27-Mar-09 0:35 
GeneralRe: Help with Binary Pin
Michael Schubert27-Mar-09 0:39
Michael Schubert27-Mar-09 0:39 
GeneralRe: Help with Binary Pin
CPallini27-Mar-09 0:45
mveCPallini27-Mar-09 0:45 
GeneralRe: Help with Binary Pin
Michael Schubert27-Mar-09 0:51
Michael Schubert27-Mar-09 0:51 
AnswerRe: Help with Binary Pin
Divyang Mithaiwala27-Mar-09 0:42
Divyang Mithaiwala27-Mar-09 0:42 
AnswerRe: Help with Binary Pin
Stuart Dootson27-Mar-09 0:45
professionalStuart Dootson27-Mar-09 0:45 
AnswerRe: Help with Binary Pin
David Crow27-Mar-09 3:07
David Crow27-Mar-09 3:07 
QuestionProblem in loading Image,GetLastError 33 Pin
hemlat26-Mar-09 23:01
hemlat26-Mar-09 23:01 
AnswerRe: Problem in loading Image,GetLastError 33 Pin
CPallini26-Mar-09 23:15
mveCPallini26-Mar-09 23:15 
AnswerRe: Problem in loading Image,GetLastError 33 Pin
Michael Schubert27-Mar-09 0:50
Michael Schubert27-Mar-09 0:50 
AnswerRe: Problem in loading Image,GetLastError 33 Pin
David Crow27-Mar-09 3:08
David Crow27-Mar-09 3:08 
QuestionMemory leak problem Pin
Pryabu26-Mar-09 22:31
Pryabu26-Mar-09 22:31 
AnswerRe: Memory leak problem Pin
S p k 52126-Mar-09 22:58
S p k 52126-Mar-09 22:58 
GeneralRe: Memory leak problem Pin
Pryabu26-Mar-09 23:43
Pryabu26-Mar-09 23:43 
AnswerRe: Memory leak problem Pin
KarstenK26-Mar-09 23:03
mveKarstenK26-Mar-09 23:03 
GeneralRe: Memory leak problem Pin
Pryabu26-Mar-09 23:45
Pryabu26-Mar-09 23:45 

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.