Click here to Skip to main content
15,891,621 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionstructure checking Pin
kk.tvm28-Dec-09 1:04
kk.tvm28-Dec-09 1:04 
AnswerRe: structure checking [modified] Pin
KingsGambit28-Dec-09 1:09
KingsGambit28-Dec-09 1:09 
GeneralRe: structure checking Pin
Madhu Nair28-Dec-09 4:13
Madhu Nair28-Dec-09 4:13 
AnswerRe: structure checking Pin
Richard MacCutchan28-Dec-09 1:10
mveRichard MacCutchan28-Dec-09 1:10 
GeneralRe: structure checking Pin
Luc Pattyn28-Dec-09 3:29
sitebuilderLuc Pattyn28-Dec-09 3:29 
GeneralRe: structure checking Pin
CPallini28-Dec-09 3:47
mveCPallini28-Dec-09 3:47 
GeneralRe: structure checking Pin
Bram van Kampen28-Dec-09 13:26
Bram van Kampen28-Dec-09 13:26 
GeneralRe: structure checking Pin
CPallini28-Dec-09 20:44
mveCPallini28-Dec-09 20:44 
Bram van Kampen wrote:
Padding bytes are technically 'Undefined', meaning that the underlying architecture can do with them what it wants.

They're actually well defined if you initialize them like the OP did.
Given the padding issue you may choose one of the following conventions:
  1. Consider padding bytes as 'members' of your struct.
  2. Ignore padding bytes

If you follow consistently the convention choosen, then you won't have troubles (the OP implicitely chose convention 1).

Smile | :)

If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.

This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke

[My articles]

GeneralRe: structure checking Pin
Richard MacCutchan28-Dec-09 5:17
mveRichard MacCutchan28-Dec-09 5:17 
GeneralRe: structure checking Pin
Luc Pattyn28-Dec-09 5:29
sitebuilderLuc Pattyn28-Dec-09 5:29 
GeneralRe: structure checking Pin
Richard MacCutchan28-Dec-09 5:42
mveRichard MacCutchan28-Dec-09 5:42 
GeneralRe: structure checking Pin
Luc Pattyn28-Dec-09 5:44
sitebuilderLuc Pattyn28-Dec-09 5:44 
GeneralRe: structure checking Pin
Richard MacCutchan28-Dec-09 6:26
mveRichard MacCutchan28-Dec-09 6:26 
AnswerRe: structure checking Pin
CPallini28-Dec-09 1:28
mveCPallini28-Dec-09 1:28 
GeneralRe: structure checking Pin
kk.tvm30-Dec-09 19:45
kk.tvm30-Dec-09 19:45 
QuestionNamed pipes cross domains Pin
vikramlinux27-Dec-09 22:56
vikramlinux27-Dec-09 22:56 
QuestionSQL + _RecordsetPtr [modified] Pin
NVCprog27-Dec-09 22:34
NVCprog27-Dec-09 22:34 
QuestionA Bug with MFC Aero Wizards ? Pin
Ahmed Charfeddine27-Dec-09 22:18
Ahmed Charfeddine27-Dec-09 22:18 
AnswerRe: A Bug with MFC Aero Wizards ? Pin
Greg Marr13-Jan-10 12:08
Greg Marr13-Jan-10 12:08 
QuestionPragmas in C Pin
Razanust27-Dec-09 21:19
Razanust27-Dec-09 21:19 
AnswerRe: Pragmas in C [modified] Pin
Nuri Ismail27-Dec-09 21:36
Nuri Ismail27-Dec-09 21:36 
AnswerRe: Pragmas in C Pin
sashoalm27-Dec-09 23:06
sashoalm27-Dec-09 23:06 
AnswerRe: Pragmas in C Pin
Richard MacCutchan27-Dec-09 23:19
mveRichard MacCutchan27-Dec-09 23:19 
AnswerRe: Pragmas in C Pin
Bram van Kampen28-Dec-09 1:31
Bram van Kampen28-Dec-09 1:31 
GeneralRe: Pragmas in C //Is this a Bug in CP?? Pin
Bram van Kampen28-Dec-09 1:42
Bram van Kampen28-Dec-09 1: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.