Click here to Skip to main content
15,917,329 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: LONGLONG Pin
toxcct11-Apr-05 23:27
toxcct11-Apr-05 23:27 
GeneralRe: LONGLONG Pin
Joel Holdsworth12-Apr-05 0:06
Joel Holdsworth12-Apr-05 0:06 
GeneralRe: LONGLONG [edited] Pin
toxcct11-Apr-05 23:08
toxcct11-Apr-05 23:08 
GeneralRe: LONGLONG Pin
fardak11-Apr-05 23:42
fardak11-Apr-05 23:42 
GeneralRe: LONGLONG Pin
toxcct11-Apr-05 23:47
toxcct11-Apr-05 23:47 
GeneralRe: LONGLONG Pin
fardak12-Apr-05 0:05
fardak12-Apr-05 0:05 
GeneralRe: LONGLONG Pin
Joel Holdsworth12-Apr-05 0:11
Joel Holdsworth12-Apr-05 0:11 
GeneralRe: LONGLONG Pin
fardak12-Apr-05 0:26
fardak12-Apr-05 0:26 
Thanks again.
Ok the last version is

void CMyBitsDlg::ConvertLLtoBin()
{ //LONGLONG value = 12345;
LONGLONG value = 0xFF FF FF FF FF FF FF FF;
TCHAR mystring[sizeof(LONGLONG)+1];
for(int i = 0; i < sizeof(LONGLONG); i++)
mystring[i] = ((value >> (sizeof(LONGLONG) - i - 1)) & 1) ? _T('1') : _T('0');
mystring[sizeof(LONGLONG)]='\0';
AfxMessageBox(mystring);
}

And the answer is 11 11 11 11
Instead od a 64 times '1'.
Where the rest has gone ?
GeneralRe: LONGLONG Pin
Joel Holdsworth12-Apr-05 0:30
Joel Holdsworth12-Apr-05 0:30 
GeneralRe: LONGLONG Pin
fardak12-Apr-05 0:42
fardak12-Apr-05 0:42 
GeneralRe: LONGLONG Pin
Joel Holdsworth12-Apr-05 0:50
Joel Holdsworth12-Apr-05 0:50 
GeneralRe: LONGLONG Pin
toxcct12-Apr-05 0:14
toxcct12-Apr-05 0:14 
GeneralRe: LONGLONG Pin
fardak12-Apr-05 0:35
fardak12-Apr-05 0:35 
GeneralRe: LONGLONG Pin
fardak12-Apr-05 1:59
fardak12-Apr-05 1:59 
GeneralRe: LONGLONG Pin
Joel Holdsworth12-Apr-05 0:26
Joel Holdsworth12-Apr-05 0:26 
Generalb+ tree implementation in c Pin
chaitanyajonnalagadda11-Apr-05 21:18
chaitanyajonnalagadda11-Apr-05 21:18 
GeneralAutomated building Pin
JensB11-Apr-05 20:53
JensB11-Apr-05 20:53 
GeneralRe: Automated building Pin
CP Visitor12-Apr-05 4:47
CP Visitor12-Apr-05 4:47 
GeneralHelp me about DSP Pin
vtalau11-Apr-05 20:35
vtalau11-Apr-05 20:35 
GeneralRe: Help me about DSP Pin
namaskaaram11-Apr-05 21:15
namaskaaram11-Apr-05 21:15 
GeneralConsole application on system tray Pin
jakas11-Apr-05 20:19
jakas11-Apr-05 20:19 
GeneralRe: Console application on system tray Pin
Cedric Moonen11-Apr-05 21:09
Cedric Moonen11-Apr-05 21:09 
GeneralRe: Console application on system tray Pin
jakas11-Apr-05 23:05
jakas11-Apr-05 23:05 
GeneralRe: Console application on system tray Pin
Cedric Moonen12-Apr-05 0:17
Cedric Moonen12-Apr-05 0:17 
GeneralLog File... Pin
mpallavi11-Apr-05 20:15
mpallavi11-Apr-05 20:15 

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.