Click here to Skip to main content
15,919,613 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Tool for Translating Software / Resource Editor Pin
20-Mar-01 5:17
suss20-Mar-01 5:17 
GeneralRe: Tool for Translating Software / Resource Editor Pin
Masaaki Onishi20-Mar-01 6:52
Masaaki Onishi20-Mar-01 6:52 
GeneralHelp Me!! Pin
20-Mar-01 2:56
suss20-Mar-01 2:56 
GeneralRe: Help Me!! Pin
l a u r e n21-Mar-01 1:19
l a u r e n21-Mar-01 1:19 
General(void *) conversion to double Pin
Joan M20-Mar-01 2:30
professionalJoan M20-Mar-01 2:30 
GeneralRe: (void *) conversion to double Pin
markkuk20-Mar-01 21:41
markkuk20-Mar-01 21:41 
GeneralDebugging Problem with CHAR Pin
.::RockNix::.20-Mar-01 1:29
.::RockNix::.20-Mar-01 1:29 
GeneralRe: Debugging Problem with CHAR Pin
20-Mar-01 3:44
suss20-Mar-01 3:44 
The reason is byte packing.

The i386 and later processors can access memory that is aligned or unaligned to specific
boundaries.

For byte size operations, any address is as good as another (not quite true,
but its handled inside the processor).

For word size (16 bit) operations, accesses are faster on 16 bit aligned addresses (every
2 bytes).

For DWORD and pointer size operations, accesses are faster on 32 bit aligned addresses
(every 4 bytes).

Since your structure has a 4 byte sized object (the unsigned int) following the char
it has been aligned to the next optimal address. If you really don't like this you
can instruct the compiler how you want it to behave using the #pragma pack directive.

Stephen Kellett

GeneralFirst-chance exception in myapp.exe (GDI32.DLL): 0xC0000005: Access Violation. Pin
jerry0davis20-Mar-01 0:38
jerry0davis20-Mar-01 0:38 
GeneralRe: First-chance exception in myapp.exe (GDI32.DLL): 0xC0000005: Access Violation. Pin
Tim Deveaux20-Mar-01 13:03
Tim Deveaux20-Mar-01 13:03 
QuestionHow to maintain different title bars' caption ? Pin
leonwoo20-Mar-01 0:10
leonwoo20-Mar-01 0:10 
AnswerRe: How to maintain different title bars' caption ? Pin
Michael Dunn20-Mar-01 6:20
sitebuilderMichael Dunn20-Mar-01 6:20 
GeneralRe: How to maintain different title bars' caption ? Pin
21-Mar-01 0:58
suss21-Mar-01 0:58 
AnswerRe: How to maintain different title bars' caption ? Pin
l a u r e n21-Mar-01 1:23
l a u r e n21-Mar-01 1:23 
GeneralADO Streams Pin
ernst.maurer19-Mar-01 23:13
ernst.maurer19-Mar-01 23:13 
GeneralStorage, OleDocument ... Pin
19-Mar-01 22:24
suss19-Mar-01 22:24 
Generalsome thing is strang in double type Pin
Ahmad19-Mar-01 21:44
Ahmad19-Mar-01 21:44 
GeneralRe: some thing is strang in double type Pin
markkuk19-Mar-01 22:10
markkuk19-Mar-01 22:10 
GeneralRe: some thing is strang in double type Pin
Ahmad20-Mar-01 21:00
Ahmad20-Mar-01 21:00 
Generalpointer of pointer(char** ch) Pin
Ahmad19-Mar-01 21:39
Ahmad19-Mar-01 21:39 
GeneralRe: pointer of pointer(char** ch) Pin
Datacrime20-Mar-01 1:24
Datacrime20-Mar-01 1:24 
GeneralRe: pointer of pointer(char** ch) Pin
Ahmad20-Mar-01 21:09
Ahmad20-Mar-01 21:09 
Generalbitwise left shift and sight shift Operators << , >> Pin
Ahmad19-Mar-01 21:35
Ahmad19-Mar-01 21:35 
GeneralRe: bitwise left shift and sight shift Operators << , >> Pin
Michael Martin20-Mar-01 16:45
professionalMichael Martin20-Mar-01 16:45 
GeneralRe: bitwise left shift and sight shift Operators << , >> Pin
Ahmad20-Mar-01 21:16
Ahmad20-Mar-01 21:16 

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.