Click here to Skip to main content
15,922,696 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Run time combo box Pin
Y_Kaushik20-Dec-07 23:37
Y_Kaushik20-Dec-07 23:37 
GeneralRe: Run time combo box Pin
Hamid_RT20-Dec-07 23:58
Hamid_RT20-Dec-07 23:58 
GeneralRe: Run time combo box Pin
Mark Salsbery21-Dec-07 8:42
Mark Salsbery21-Dec-07 8:42 
GeneralDirectShow / DMO Effects Pin
Robert Fiegender20-Dec-07 12:49
sussRobert Fiegender20-Dec-07 12:49 
QuestionHow to access program call arguments? Pin
Anthony Appleyard20-Dec-07 12:10
Anthony Appleyard20-Dec-07 12:10 
AnswerRe: How to access program call arguments? Pin
Steve Echols20-Dec-07 12:22
Steve Echols20-Dec-07 12:22 
GeneralRe: How to access program call arguments? Pin
Anthony Appleyard20-Dec-07 20:31
Anthony Appleyard20-Dec-07 20:31 
AnswerRe: How to access program call arguments? Pin
CPallini20-Dec-07 12:28
mveCPallini20-Dec-07 12:28 
GeneralGetting objects in ROT Pin
Akin Ocal20-Dec-07 12:07
Akin Ocal20-Dec-07 12:07 
GeneralRe: Getting objects in ROT Pin
Stephen Hewitt20-Dec-07 13:55
Stephen Hewitt20-Dec-07 13:55 
Generalifstream slow to close Pin
Budric B.20-Dec-07 11:05
Budric B.20-Dec-07 11:05 
QuestionRuntime error - incompatible iterator - why??? Pin
Philstix20-Dec-07 10:47
Philstix20-Dec-07 10:47 
GeneralRe: Runtime error - incompatible iterator - why??? Pin
Philstix20-Dec-07 10:50
Philstix20-Dec-07 10:50 
GeneralRe: Runtime error - incompatible iterator - why??? Pin
Philstix20-Dec-07 10:53
Philstix20-Dec-07 10:53 
GeneralRe: Runtime error - incompatible iterator - why??? Pin
CPallini20-Dec-07 11:37
mveCPallini20-Dec-07 11:37 
QuestionRe: Runtime error - incompatible iterator - why??? Pin
Philstix20-Dec-07 15:34
Philstix20-Dec-07 15:34 
GeneralRe: Runtime error - incompatible iterator - why??? Pin
Stephen Hewitt20-Dec-07 15:36
Stephen Hewitt20-Dec-07 15:36 
GeneralRe: Runtime error - incompatible iterator - why??? Pin
Philstix20-Dec-07 17:28
Philstix20-Dec-07 17:28 
GeneralClass/struct declarations and bit patterns Pin
Anthony Appleyard20-Dec-07 10:43
Anthony Appleyard20-Dec-07 10:43 
GeneralRe: Class/struct declarations and bit patterns Pin
CPallini20-Dec-07 11:19
mveCPallini20-Dec-07 11:19 
GeneralRe: Class/struct declarations and bit patterns Pin
Anthony Appleyard20-Dec-07 11:56
Anthony Appleyard20-Dec-07 11:56 
GeneralGood Luck! Pin
CPallini20-Dec-07 12:45
mveCPallini20-Dec-07 12:45 
GeneralRe: Class/struct declarations and bit patterns [modified] Pin
Mark Salsbery20-Dec-07 13:22
Mark Salsbery20-Dec-07 13:22 
Anthony Appleyard wrote:
But here I am reading from a file format which someone else (probably at Microsoft many years ago) invented.


Why are you not using the Microsoft structure definitions
that have been around just as long?

BITMAPFILEHEADER is packed with 2-byte alignment
BITMAPINFO and BITMAPINFOHEADER are packed with 1-byte alignment.

To see how that affects struct padding and alignment, see

align (C++)[^]
/Zp (Struct Member Alignment)[^]
etc...

If you're going to redefine these structs and expect them to match
everyone else, then you'll probably want to set your structure packing
the same as Microsoft's (see #pragma pack).

*edit*  Also, using platform-specific types like "long" and "short" is a bad<br />
idea if you expect to match the Microsoft definitions.


Mark
Mark Salsbery
Microsoft MVP - Visual C++

Java | [Coffee]

modified on Thursday, December 20, 2007 7:40:28 PM

GeneralAfter a picture is tranformed by GDI+, mouse cursor point problem Pin
followait20-Dec-07 5:57
followait20-Dec-07 5:57 
GeneralRe: After a picture is tranformed by GDI+, mouse cursor point problem Pin
CPallini20-Dec-07 10:16
mveCPallini20-Dec-07 10: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.