Click here to Skip to main content
15,911,711 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: PostMessage Pin
Prakash Nadar9-Apr-04 15:13
Prakash Nadar9-Apr-04 15:13 
GeneralRe: PostMessage Pin
Empty198110-Apr-04 1:19
Empty198110-Apr-04 1:19 
QuestionEXE Header Info? Pin
Timothy Grabrian9-Apr-04 12:46
professionalTimothy Grabrian9-Apr-04 12:46 
GeneralSplitting an Integer into 4 Bytes Pin
sschilachi9-Apr-04 12:16
sschilachi9-Apr-04 12:16 
GeneralRe: Splitting an Integer into 4 Bytes Pin
PJ Arends9-Apr-04 12:41
professionalPJ Arends9-Apr-04 12:41 
GeneralRe: Splitting an Integer into 4 Bytes Pin
Roman Nurik9-Apr-04 12:50
Roman Nurik9-Apr-04 12:50 
GeneralRe: Splitting an Integer into 4 Bytes Pin
grigsoft9-Apr-04 21:46
grigsoft9-Apr-04 21:46 
GeneralRe: Splitting an Integer into 4 Bytes Pin
Prakash Nadar9-Apr-04 22:00
Prakash Nadar9-Apr-04 22:00 
assume i is 2 bytes for simplicity.

int i = 0x1234;
byte c1,c2,

then according to your logic, the output would be like this.
c1 = 0x34; and
c2 = 0x12;
which is wrong.This is because the way it is stored in the memory. and if you consider for 32bit integer value, the error would just double.

and according to PJ
c1 = 0x12; &
c2 = 0x34;
here the output is correct,

hope you got the picture now.
GeneralRunning my application when Windows starts Pin
Anonymous9-Apr-04 10:56
Anonymous9-Apr-04 10:56 
GeneralRe: Running my application when Windows starts Pin
Brian Olej9-Apr-04 11:09
Brian Olej9-Apr-04 11:09 
GeneralRe: Running my application when Windows starts Pin
toxcct9-Apr-04 11:14
toxcct9-Apr-04 11:14 
GeneralRe: Running my application when Windows starts Pin
Prakash Nadar9-Apr-04 15:18
Prakash Nadar9-Apr-04 15:18 
GeneralRe: Running my application when Windows starts Pin
2249179-Apr-04 19:04
2249179-Apr-04 19:04 
GeneralRe: Running my application when Windows starts Pin
Renjith Ramachandran9-Apr-04 19:38
Renjith Ramachandran9-Apr-04 19:38 
GeneralRe: Running my application when Windows starts Pin
Anonymous10-Apr-04 0:01
Anonymous10-Apr-04 0:01 
GeneralRe: Running my application when Windows starts Pin
Anonymous10-Apr-04 0:02
Anonymous10-Apr-04 0:02 
GeneralRe: Running my application when Windows starts Pin
Renjith Ramachandran10-Apr-04 0:44
Renjith Ramachandran10-Apr-04 0:44 
GeneralRight Solution from right person only Pin
ThatsAlok10-Apr-04 0:58
ThatsAlok10-Apr-04 0:58 
GeneralRe: Right Solution from right person only Pin
toxcct10-Apr-04 1:20
toxcct10-Apr-04 1:20 
GeneralRe: Right Solution from right person only Pin
Renjith Ramachandran10-Apr-04 2:45
Renjith Ramachandran10-Apr-04 2:45 
GeneralPreProcessor defines Pin
The Bowman9-Apr-04 10:40
The Bowman9-Apr-04 10:40 
GeneralRe: PreProcessor defines Pin
Michael Dunn9-Apr-04 14:56
sitebuilderMichael Dunn9-Apr-04 14:56 
GeneralRe: PreProcessor defines Pin
The Bowman9-Apr-04 15:11
The Bowman9-Apr-04 15:11 
Generalftp .... Pin
Shay Harel9-Apr-04 9:37
Shay Harel9-Apr-04 9:37 
GeneralRe: ftp .... Pin
Prakash Nadar9-Apr-04 9:42
Prakash Nadar9-Apr-04 9:42 

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.