Click here to Skip to main content
15,905,508 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
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 
Okay, I've solved the bmp problem. What I wasn't doing was taking the image size to be:
bmBitmapInfo->bmiHeader.biSizeImage*(DWORD)(bmBitmapInfo->bmiHeader.biBitCount);

Instead, I was doing my overly complicated size calculation and then adding bytes until it was in multiples of 4. The biSizeImage*Bits per pixel was all I needed Smile | :)


However, I still ahve that problem with the pngs. Anyone? To reiterate, the problem is that the CFile Write function is writing the whole TCHAR even though I don't want to write 4 of the TCHAR bytes.
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 
QuestionRe: Add text to title bar (or document header) Pin
AeJai6-Aug-07 9:39
AeJai6-Aug-07 9:39 
AnswerRe: Add text to title bar (or document header) Pin
Mark Salsbery6-Aug-07 9:59
Mark Salsbery6-Aug-07 9:59 
Question2 dim numbers.. Pin
_80866-Aug-07 5:42
_80866-Aug-07 5:42 
QuestionRe: 2 dim numbers.. Pin
David Crow6-Aug-07 5:44
David Crow6-Aug-07 5:44 

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.