Click here to Skip to main content
15,910,234 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: MFC CString::Delete() don't work properly Pin
toxcct25-Mar-05 1:05
toxcct25-Mar-05 1:05 
GeneralRe: MFC CString::Delete() don't work properly Pin
David Crow9-Jun-05 3:03
David Crow9-Jun-05 3:03 
GeneralRe: MFC CString::Delete() don't work properly Pin
toxcct9-Jun-05 5:13
toxcct9-Jun-05 5:13 
GeneralSerial comm in VC++ Pin
MaheshKalose24-Mar-05 6:15
MaheshKalose24-Mar-05 6:15 
Generalgrayout a text Pin
mk_le24-Mar-05 5:32
mk_le24-Mar-05 5:32 
GeneralRe: grayout a text Pin
Michael Dunn24-Mar-05 13:33
sitebuilderMichael Dunn24-Mar-05 13:33 
GeneralConvert To Binary Pin
Static(x)24-Mar-05 4:38
Static(x)24-Mar-05 4:38 
GeneralRe: Convert To Binary Pin
David Crow24-Mar-05 5:25
David Crow24-Mar-05 5:25 
Giorgi Moniava wrote:
can you give me any link where i can find information about converting from decimal to binary

I found this in my toolbox. It's old so adjust as necessary:

void DWORD_To_BinaryString( DWORD value,char string[] )
{    
    for (int bit = 0; bit < 32; bit++) 
    {        
        DWORD mask = 0x80000000 >> bit;        
         
        if ((value & mask) == mask) 
            string[bit] = '1';        
        else                        
            string[bit] = '0';    
    }    
    
    string[32] = '\0';
}



"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow


GeneralRe: Convert To Binary Pin
ddmcr24-Mar-05 5:54
ddmcr24-Mar-05 5:54 
GeneralRe: Convert To Binary Pin
David Crow24-Mar-05 5:59
David Crow24-Mar-05 5:59 
GeneralRe: Convert To Binary [edited] Pin
toxcct24-Mar-05 5:36
toxcct24-Mar-05 5:36 
GeneralRe: Convert To Binary Pin
ddmcr24-Mar-05 6:34
ddmcr24-Mar-05 6:34 
GeneralRe: Convert To Binary Pin
toxcct24-Mar-05 6:39
toxcct24-Mar-05 6:39 
GeneralToolbar problems... Pin
Tommy2d24-Mar-05 4:25
Tommy2d24-Mar-05 4:25 
GeneralPlease help me! Pin
dSolariuM24-Mar-05 4:25
dSolariuM24-Mar-05 4:25 
GeneralRe: Please help me! Pin
toxcct24-Mar-05 5:18
toxcct24-Mar-05 5:18 
Generalcurrently connected user Pin
shaans24-Mar-05 2:55
shaans24-Mar-05 2:55 
GeneralRe: currently connected user Pin
David Crow24-Mar-05 4:06
David Crow24-Mar-05 4:06 
GeneralRe: currently connected user Pin
shaans24-Mar-05 17:26
shaans24-Mar-05 17:26 
GeneralRe: currently connected user Pin
David Crow25-Mar-05 2:07
David Crow25-Mar-05 2:07 
GeneralSend mail with attachment Pocket PC 2003 Pin
verma-rahul24-Mar-05 1:34
verma-rahul24-Mar-05 1:34 
Generalfun(char*) and fun(char) Pin
bobi_zcl24-Mar-05 0:37
bobi_zcl24-Mar-05 0:37 
GeneralRe: fun(char*) and fun(char) Pin
Abyss24-Mar-05 1:23
Abyss24-Mar-05 1:23 
GeneralRe: fun(char*) and fun(char) Pin
toxcct24-Mar-05 1:27
toxcct24-Mar-05 1:27 
GeneralRe: fun(char*) and fun(char) Pin
bobi_zcl24-Mar-05 1:43
bobi_zcl24-Mar-05 1:43 

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.