Click here to Skip to main content
15,922,015 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Changing Tab Order Programmatically Pin
khan++1-Mar-06 19:27
khan++1-Mar-06 19:27 
GeneralRe: Changing Tab Order Programmatically Pin
Blake Miller2-Mar-06 4:11
Blake Miller2-Mar-06 4:11 
GeneralRe: Changing Tab Order Programmatically Pin
khan++2-Mar-06 19:02
khan++2-Mar-06 19:02 
Questionuse of _ltoa Pin
Kranti125198428-Feb-06 0:56
Kranti125198428-Feb-06 0:56 
AnswerRe: use of _ltoa Pin
Naveen28-Feb-06 1:04
Naveen28-Feb-06 1:04 
GeneralRe: use of _ltoa Pin
Kranti125198428-Feb-06 1:47
Kranti125198428-Feb-06 1:47 
GeneralRe: use of _ltoa Pin
Cedric Moonen28-Feb-06 2:02
Cedric Moonen28-Feb-06 2:02 
AnswerRe: use of _ltoa Pin
Cedric Moonen28-Feb-06 1:19
Cedric Moonen28-Feb-06 1:19 
I think you want to convert a binary string into its value ? Right ?
Maybe you can write a simple function to do that:

int BoolStringToVal(char* szString)<br />
{<br />
    int Value = 0;<br />
    for (int Index=strlen(szString)-1; Index>=0; Index--)<br />
    {<br />
        int BinValue = 1 << (Index - strlen(szString) + 1 );<br />
        if (szString[Index])<br />
           Value += BinValue ;<br />
    }<br />
<br />
   return Value;<br />
}


So, what it does is look for each char in the string and if this char is 1 then we add its corresponding value to the total value. The code has not been tested so I'm not sure if this will work, but you got the principle.
AnswerRe: use of _ltoa Pin
mbue28-Feb-06 2:37
mbue28-Feb-06 2:37 
GeneralRe: use of _ltoa Pin
Kranti125198428-Feb-06 17:35
Kranti125198428-Feb-06 17:35 
QuestionDeleting a file to recycle bin Pin
Chintoo72328-Feb-06 0:44
Chintoo72328-Feb-06 0:44 
AnswerRe: Deleting a file to recycle bin Pin
Jack Puppy28-Feb-06 1:23
Jack Puppy28-Feb-06 1:23 
AnswerRe: Deleting a file to recycle bin Pin
mbue28-Feb-06 2:45
mbue28-Feb-06 2:45 
QuestionProgrammatically search for a file Pin
Anil_vvs28-Feb-06 0:44
Anil_vvs28-Feb-06 0:44 
AnswerRe: Programmatically search for a file Pin
Anil_vvs28-Feb-06 0:45
Anil_vvs28-Feb-06 0:45 
GeneralRe: Programmatically search for a file Pin
toxcct28-Feb-06 0:48
toxcct28-Feb-06 0:48 
GeneralRe: Programmatically search for a file Pin
James Brown28-Feb-06 1:52
James Brown28-Feb-06 1:52 
AnswerRe: Programmatically search for a file Pin
mbue28-Feb-06 2:49
mbue28-Feb-06 2:49 
GeneralRe: Programmatically search for a file Pin
Anil_vvs28-Feb-06 2:54
Anil_vvs28-Feb-06 2:54 
GeneralRe: Programmatically search for a file Pin
mbue28-Feb-06 3:32
mbue28-Feb-06 3:32 
QuestionData string Parsing Pin
srija28-Feb-06 0:42
srija28-Feb-06 0:42 
AnswerRe: Data string Parsing Pin
toxcct28-Feb-06 0:47
toxcct28-Feb-06 0:47 
GeneralRe: Data string Parsing Pin
srija28-Feb-06 1:34
srija28-Feb-06 1:34 
GeneralRe: Data string Parsing Pin
srija28-Feb-06 1:37
srija28-Feb-06 1:37 
AnswerRe: Data string Parsing Pin
Naveen28-Feb-06 0:59
Naveen28-Feb-06 0:59 

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.