Click here to Skip to main content
16,003,315 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Question regarding DirectX Pin
Mark Salsbery7-Aug-07 5:04
Mark Salsbery7-Aug-07 5:04 
QuestionSetting CComboBox Height Pin
WayneK1006-Aug-07 12:41
WayneK1006-Aug-07 12:41 
AnswerRe: Setting CComboBox Height Pin
Mark Salsbery6-Aug-07 13:35
Mark Salsbery6-Aug-07 13:35 
GeneralRe: Setting CComboBox Height Pin
WayneK1006-Aug-07 14:06
WayneK1006-Aug-07 14:06 
GeneralRe: Setting CComboBox Height Pin
Mark Salsbery6-Aug-07 14:14
Mark Salsbery6-Aug-07 14:14 
AnswerRe: Setting CComboBox Height Pin
Anurag Gandhi6-Aug-07 20:18
professionalAnurag Gandhi6-Aug-07 20:18 
QuestionExtracting binary resources -- PNG and Bitmap Pin
Torus_XL6-Aug-07 9:37
Torus_XL6-Aug-07 9:37 
AnswerRe: Extracting binary resources -- PNG and Bitmap Pin
Mark Salsbery6-Aug-07 9:52
Mark Salsbery6-Aug-07 9:52 
The BITMAPINFOHEADER has a biSizeImage member so you shouldn't have to calculate it yourself.
If you do choose to calculate it you need to set it to your new value.

You haven't allowed for a color table if the bitmap is <= 8 bitsperpixel.

When writing the file, you write the header and close the file.
Then you reopen the file, truncate it (no more header) and write the rest.
That will invalidate it as a BMP file.

Mark



Mark Salsbery
Microsoft MVP - Visual C++

Java | [Coffee]

GeneralRe: Extracting binary resources -- PNG and Bitmap Pin
Torus_XL6-Aug-07 10:10
Torus_XL6-Aug-07 10:10 
GeneralRe: Extracting binary resources -- PNG and Bitmap Pin
Mark Salsbery6-Aug-07 13:28
Mark Salsbery6-Aug-07 13:28 
GeneralRe: Extracting binary resources -- PNG and Bitmap Pin
Torus_XL7-Aug-07 8:10
Torus_XL7-Aug-07 8:10 
AnswerRe: Extracting binary resources -- PNG and Bitmap Pin
Torus_XL6-Aug-07 11:04
Torus_XL6-Aug-07 11:04 
QuestionWin32: Writing a new line of text? [modified] Pin
deostroll6-Aug-07 9:33
deostroll6-Aug-07 9:33 
AnswerRe: Win32: Writing a new line of text? Pin
Wes Aday6-Aug-07 9:52
professionalWes Aday6-Aug-07 9:52 
GeneralRe: Win32: Writing a new line of text? Pin
Nemanja Trifunovic6-Aug-07 10:03
Nemanja Trifunovic6-Aug-07 10:03 
AnswerRe: Win32: Writing a new line of text? Pin
deostroll7-Aug-07 19:57
deostroll7-Aug-07 19:57 
QuestionCSocket stops receiving Pin
Trooper_IL6-Aug-07 8:54
Trooper_IL6-Aug-07 8:54 
AnswerRe: CSocket stops receiving Pin
led mike6-Aug-07 9:13
led mike6-Aug-07 9:13 
QuestionRe: CSocket stops receiving Pin
Mark Salsbery6-Aug-07 9:40
Mark Salsbery6-Aug-07 9:40 
AnswerRe: CSocket stops receiving Pin
Trooper_IL7-Aug-07 3:09
Trooper_IL7-Aug-07 3:09 
GeneralRe: CSocket stops receiving Pin
Mark Salsbery7-Aug-07 4:57
Mark Salsbery7-Aug-07 4:57 
GeneralRe: CSocket stops receiving Pin
JudyL_MD7-Aug-07 10:14
JudyL_MD7-Aug-07 10:14 
QuestionAdd text to title bar (or document header) Pin
AeJai6-Aug-07 8:09
AeJai6-Aug-07 8:09 
AnswerRe: Add text to title bar (or document header) Pin
Mark Salsbery6-Aug-07 8:11
Mark Salsbery6-Aug-07 8:11 
GeneralRe: Add text to title bar (or document header) Pin
AeJai6-Aug-07 8:14
AeJai6-Aug-07 8:14 

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.