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

C / C++ / MFC

 
GeneralRe: LONGLONG [Edited] Pin
Joel Holdsworth11-Apr-05 22:56
Joel Holdsworth11-Apr-05 22:56 
GeneralRe: LONGLONG Pin
fardak11-Apr-05 23:22
fardak11-Apr-05 23:22 
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 
Thanks again.
I rewrote this:
void CMyBitsDlg::ConvertLLtoBin()
{ LONGLONG value = 12345;
TCHAR mystring[sizeof(LONGLONG)];
for(int i = 0; i < sizeof(LONGLONG); i++)
mystring[i] = ((value >> (sizeof(LONGLONG) - i - 1)) & 1) ? _T('1') : _T('0');
mystring[i]='\0'; //added
AfxMessageBox(mystring);
}

And the answer is 00111001 which is 39 hexadecimal.
So something is wrong.
But the strange thing happening now is that I have an error memory reading message.
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 
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 

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.