Click here to Skip to main content
16,005,236 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalmp3 info Pin
locoone6-May-05 2:15
locoone6-May-05 2:15 
GeneralRe: mp3 info Pin
Alexander M.,6-May-05 3:34
Alexander M.,6-May-05 3:34 
GeneralPassing a string from a C++ DLL to VB Pin
JSadleir6-May-05 2:02
JSadleir6-May-05 2:02 
GeneralRe: Passing a string from a C++ DLL to VB Pin
Chris Meech6-May-05 2:23
Chris Meech6-May-05 2:23 
GeneralRe: Passing a string from a C++ DLL to VB Pin
JSadleir6-May-05 2:32
JSadleir6-May-05 2:32 
GeneralPacking Structures Pin
jerry1211a6-May-05 1:42
jerry1211a6-May-05 1:42 
GeneralRe: Packing Structures Pin
benjymous6-May-05 2:43
benjymous6-May-05 2:43 
GeneralRe: Packing Structures Pin
Gary R. Wheeler8-May-05 5:14
Gary R. Wheeler8-May-05 5:14 
A packed structure saves memory at the cost of less-efficient code. Some CPU's access memory more efficiently on 4, 8, or 16 byte boundaries. Struct's packed on those boundaries can be accessed more efficiently.

If you need your program to process an existing data stream, you may have to set the structure packing to match, so that your compiler doesn't add filler bytes between structure members. For example, suppose the following is the form of a network message:
struct Message {
  unsigned short Length;
  char Data[128];
};
If the compiler's default packing is 4, you could miss the first two characters of the data, since it would add two filler bytes following the Length member in order to align the Data member on a four byte boundary.


Software Zen: delete this;
GeneralCTabctrl and Cdialog communication not working Pin
razorme6-May-05 1:31
razorme6-May-05 1:31 
QuestionFlash Control.. How Use?? Pin
KonyangUni6-May-05 1:00
KonyangUni6-May-05 1:00 
Questionhow to know a number is in float type? Pin
paven6-May-05 0:40
paven6-May-05 0:40 
AnswerRe: how to know a number is in float type? Pin
toxcct6-May-05 0:47
toxcct6-May-05 0:47 
GeneralRe: how to know a number is in float type? Pin
Anonymous6-May-05 16:47
Anonymous6-May-05 16:47 
AnswerRe: how to know a number is in float type? Pin
Maximilien6-May-05 2:31
Maximilien6-May-05 2:31 
GeneralRe: how to know a number is in float type? Pin
toxcct8-May-05 20:07
toxcct8-May-05 20:07 
AnswerRe: how to know a number is in float type? Pin
Ansari A. Halim6-May-05 2:34
Ansari A. Halim6-May-05 2:34 
GeneralStrange problem... Pin
Krishnan V6-May-05 0:35
Krishnan V6-May-05 0:35 
GeneralRe: Strange problem... Pin
Dan_P6-May-05 1:25
Dan_P6-May-05 1:25 
GeneralMouse Movement Pin
Daniel Kanev5-May-05 23:58
Daniel Kanev5-May-05 23:58 
GeneralRe: Mouse Movement Pin
«_Superman_»6-May-05 2:09
professional«_Superman_»6-May-05 2:09 
QuestionHow to execute Stored procedure with OLE DB Consumer Pin
mikobi5-May-05 23:36
mikobi5-May-05 23:36 
GeneralAFXWIN1.INL assertion Pin
ikasovitch5-May-05 22:31
ikasovitch5-May-05 22:31 
GeneralRe: AFXWIN1.INL assertion Pin
David Crow6-May-05 3:52
David Crow6-May-05 3:52 
GeneralRe: AFXWIN1.INL assertion Pin
ikasovitch6-May-05 4:19
ikasovitch6-May-05 4:19 
GeneralRe: AFXWIN1.INL assertion Pin
David Crow6-May-05 4:40
David Crow6-May-05 4:40 

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.