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

C / C++ / MFC

 
GeneralRe: CString Format method Pin
Jon Hulatt13-Aug-02 2:29
Jon Hulatt13-Aug-02 2:29 
GeneralRe: CString Format method Pin
[CoY0te]13-Aug-02 1:46
[CoY0te]13-Aug-02 1:46 
GeneralRe: CString Format method Pin
jbarton13-Aug-02 2:50
jbarton13-Aug-02 2:50 
GeneralByte Alignment Pin
solosnake12-Aug-02 23:17
solosnake12-Aug-02 23:17 
GeneralRe: Byte Alignment Pin
Tomasz Sowinski13-Aug-02 0:40
Tomasz Sowinski13-Aug-02 0:40 
GeneralRe: Byte Alignment Pin
Anonymous13-Aug-02 1:07
Anonymous13-Aug-02 1:07 
GeneralRe: Byte Alignment Pin
Brian Azzopardi13-Aug-02 4:03
Brian Azzopardi13-Aug-02 4:03 
GeneralRe: Byte Alignment Pin
JT Anderson13-Aug-02 6:45
JT Anderson13-Aug-02 6:45 
Disclaimer: The following statement is not exactly true, but it's close enough for the purpose of this discussion.

#pragma pack only affects the packing of things larger than the specified size. Things smaller than the specified size are packed on their natural boundaries. For example, pragma pack(2) will cause ints, longs and __int64s to be packed on 2-byte boundaries, but won't affect the packing of chars (one-byte boundaries) or shorts (2-byte boundaries in any case).

Perhaps if you were to show us your structure, we'd be able to tell you why you are not getting the expected results.

Under the circumstances, you may want to use pragma pack(1) and put explicit padding in your structure.
GeneralRe: Byte Alignment Pin
solosnake14-Aug-02 1:44
solosnake14-Aug-02 1:44 
General1. Simple techniques for dragging/sizing controls | 2. Non cubical dialogs/controls Pin
BlackSmith12-Aug-02 23:08
BlackSmith12-Aug-02 23:08 
GeneralDatabase Connection with SDK Pin
vin12-Aug-02 22:36
vin12-Aug-02 22:36 
GeneralRe: Database Connection with SDK Pin
Ranjan Banerji13-Aug-02 2:38
Ranjan Banerji13-Aug-02 2:38 
GeneralRe: Database Connection with SDK Pin
pépé13-Aug-02 3:05
pépé13-Aug-02 3:05 
GeneralMarking a row in a CListCtrl Pin
Poul Haahr Klemmensen12-Aug-02 22:10
Poul Haahr Klemmensen12-Aug-02 22:10 
GeneralRe: Marking a row in a CListCtrl Pin
567890123412-Aug-02 22:34
567890123412-Aug-02 22:34 
GeneralRe: Marking a row in a CListCtrl Pin
Stefan Pedersen12-Aug-02 22:34
Stefan Pedersen12-Aug-02 22:34 
GeneralRe: Marking a row in a CListCtrl Pin
Stefan Pedersen12-Aug-02 22:37
Stefan Pedersen12-Aug-02 22:37 
Questionwhat is PeekAndPump()?? Pin
tulc_kris12-Aug-02 21:57
tulc_kris12-Aug-02 21:57 
AnswerRe: what is PeekAndPump()?? Pin
jmkhael12-Aug-02 23:27
jmkhael12-Aug-02 23:27 
AnswerRe: what is PeekAndPump()?? Pin
Tomasz Sowinski13-Aug-02 0:44
Tomasz Sowinski13-Aug-02 0:44 
GeneralThread and serial port Pin
Mavrock12-Aug-02 19:25
Mavrock12-Aug-02 19:25 
GeneralRe: Thread and serial port Pin
Trollslayer12-Aug-02 22:17
mentorTrollslayer12-Aug-02 22:17 
GeneralRe: Thread and serial port Pin
Mavrock13-Aug-02 6:24
Mavrock13-Aug-02 6:24 
GeneralRe: Thread and serial port Pin
dlhson13-Aug-02 6:45
dlhson13-Aug-02 6:45 
GeneralOther question about Carlos Antollini ADO classes !!! Pin
Hadi Rezaee12-Aug-02 19:13
Hadi Rezaee12-Aug-02 19:13 

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.