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

C / C++ / MFC

 
GeneralRe: I have a problem about ID_FILE_SAVE and ID_FILE_PRINT Pin
CodeBrain9-Apr-03 21:38
CodeBrain9-Apr-03 21:38 
GeneralNT Driver Pin
John R. Shaw9-Apr-03 13:52
John R. Shaw9-Apr-03 13:52 
GeneralRe: NT Driver Pin
geo_m10-Apr-03 5:07
geo_m10-Apr-03 5:07 
GeneralRe: NT Driver Pin
John R. Shaw10-Apr-03 8:44
John R. Shaw10-Apr-03 8:44 
GeneralDAO and dialog based application Pin
midupk9-Apr-03 12:21
midupk9-Apr-03 12:21 
GeneralRe: DAO and dialog based application Pin
Joel Lucsy9-Apr-03 16:22
Joel Lucsy9-Apr-03 16:22 
Generalproblem with reading data from the disk drive. Pin
Anonymous9-Apr-03 11:35
Anonymous9-Apr-03 11:35 
GeneralRe: problem with reading data from the disk drive. Pin
Toni789-Apr-03 19:42
Toni789-Apr-03 19:42 
I don't know how you're reading your data but I remember that in intel processors data is stored backwards from what you see, which is what is happening in your case. This leads me to believe that you are using assembly (correct me if I am wrong). On the other hand if you want to read data from the right to the left you could do the following (by the way there could be better ways but this is the first solution that popped into my head).
For example:
long lResult;
long lNum = 0xb32d0240;
int iRMBit; // The right most bit
// There are 8 numbers of 4 bits each, a total of 32 bits
for( i = 0; i < 32; i++ )
{
lResult = lNum & pow(2, i);
if( lResult == 0 )
iRMBit = 0;
else
iRMBit = 1;
} // end for

However, I don't see why do you have to go through so much trouble when you can get this data while you are converting the hex number into a binary number. Technically, the above loop is reading the number bit by bit.

none
GeneralEasy one...but not for me :o) Pin
MemLeak9-Apr-03 9:57
MemLeak9-Apr-03 9:57 
GeneralRe: Easy one...but not for me :o) Pin
Ravi Bhavnani9-Apr-03 10:11
professionalRavi Bhavnani9-Apr-03 10:11 
GeneralRe: Easy one...but not for me :o) Pin
MemLeak9-Apr-03 10:12
MemLeak9-Apr-03 10:12 
GeneralMouseWheel and ScrollBar with CWnd Pin
leander9-Apr-03 9:16
leander9-Apr-03 9:16 
GeneralRe: MouseWheel and ScrollBar with CWnd Pin
leander9-Apr-03 21:36
leander9-Apr-03 21:36 
Questionuse UNICODE string ? Pin
_skidrow_vn_9-Apr-03 9:13
_skidrow_vn_9-Apr-03 9:13 
AnswerRe: use UNICODE string ? Pin
Tim Smith9-Apr-03 9:25
Tim Smith9-Apr-03 9:25 
GeneralRe: use UNICODE string ? Pin
_skidrow_vn_9-Apr-03 12:12
_skidrow_vn_9-Apr-03 12:12 
AnswerRe: use UNICODE string ? Pin
Dave Bryant9-Apr-03 9:30
Dave Bryant9-Apr-03 9:30 
GeneralRe: use UNICODE string ? Pin
Maximilien9-Apr-03 9:38
Maximilien9-Apr-03 9:38 
GeneralDifferentiate Networktraffic from Internettraffic Pin
pma9-Apr-03 8:36
pma9-Apr-03 8:36 
Generalchange contrast Pin
nbhagia9-Apr-03 6:35
nbhagia9-Apr-03 6:35 
GeneralBurning CDs programatically Pin
mabotta9-Apr-03 6:30
mabotta9-Apr-03 6:30 
GeneralRe: Burning CDs programatically Pin
Daniel Turini9-Apr-03 6:39
Daniel Turini9-Apr-03 6:39 
Generalhiding and displaying radio buttons in a group Pin
si_699-Apr-03 5:39
si_699-Apr-03 5:39 
GeneralRe: hiding and displaying radio buttons in a group Pin
Maximilien9-Apr-03 6:34
Maximilien9-Apr-03 6:34 
GeneralRe: hiding and displaying radio buttons in a group Pin
adamUK9-Apr-03 9:20
adamUK9-Apr-03 9:20 

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.