Click here to Skip to main content
15,908,675 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: mouse event Pin
Cedric Moonen9-Jul-03 22:58
Cedric Moonen9-Jul-03 22:58 
GeneralODBC; Multiple rows updated. Pin
RalfPeter9-Jul-03 7:13
RalfPeter9-Jul-03 7:13 
GeneralRe: ODBC; Multiple rows updated. Pin
perlmunger9-Jul-03 7:32
perlmunger9-Jul-03 7:32 
GeneralRe: ODBC; Multiple rows updated. Pin
Anonymous9-Jul-03 10:57
Anonymous9-Jul-03 10:57 
GeneralRe: ODBC; Multiple rows updated. Pin
Toni789-Jul-03 13:14
Toni789-Jul-03 13:14 
GeneralRe: ODBC; Multiple rows updated. Pin
Anonymous10-Jul-03 4:13
Anonymous10-Jul-03 4:13 
GeneralRe: ODBC; Multiple rows updated. Pin
Toni7810-Jul-03 18:07
Toni7810-Jul-03 18:07 
Generalcannot display BMP when resolution is 0 Pin
Satyaki9-Jul-03 7:03
Satyaki9-Jul-03 7:03 
Hi Everybody,

I have written a simple dialog based application that displays the image stored in a BMP file. The program works well for all images with uncompressed RGB images having bit depth 24 bpp and horizontal and vertical resolution as some positive value. However, with the files where horizontal and vertical resolution in BITMAPINFOHEADER is 0, the image is not displayed.

In my code, I am doing the following ---
1. Creating a DIB section using CreateDIBSection
2. Creating memory DC from DC of dialog window using CreateCompatibleDC
3. Associating the DIB section with memory DC using SelectObject
4. Copying DIB data into the buffer created by CreateDIBSection
5. Rendering the data using BitBlt/ StretchBlt

What else am I missing?

Any pointers on the same shall be highly appreciated

Regards
GeneralRe: cannot display BMP when resolution is 0 Pin
John M. Drescher9-Jul-03 8:10
John M. Drescher9-Jul-03 8:10 
GeneralRe: cannot display BMP when resolution is 0 Pin
Ryan Binns9-Jul-03 17:10
Ryan Binns9-Jul-03 17:10 
GeneralRe: cannot display BMP when resolution is 0 Pin
John M. Drescher9-Jul-03 17:17
John M. Drescher9-Jul-03 17:17 
GeneralRe: cannot display BMP when resolution is 0 Pin
Satyaki9-Jul-03 22:14
Satyaki9-Jul-03 22:14 
GeneralRe: cannot display BMP when resolution is 0 Pin
John M. Drescher10-Jul-03 3:36
John M. Drescher10-Jul-03 3:36 
GeneralWindows media format 9 Pin
Emiliano9-Jul-03 7:03
Emiliano9-Jul-03 7:03 
GeneralRe: Windows media format 9 Pin
Led9-Jul-03 11:30
Led9-Jul-03 11:30 
GeneralWindows Media Format sdk :confused: Pin
Anonymous9-Jul-03 7:01
Anonymous9-Jul-03 7:01 
GeneralRe: Windows Media Format sdk :confused: Pin
David Crow9-Jul-03 9:02
David Crow9-Jul-03 9:02 
GeneralExtracting RGB values from a color Pin
IGeorgeI9-Jul-03 6:44
IGeorgeI9-Jul-03 6:44 
GeneralRe: Extracting RGB values from a color Pin
Keith D9-Jul-03 6:51
Keith D9-Jul-03 6:51 
GeneralRe: Extracting RGB values from a color Pin
Magnus Westin9-Jul-03 7:00
Magnus Westin9-Jul-03 7:00 
GeneralRe: Extracting RGB values from a color Pin
IGeorgeI9-Jul-03 8:23
IGeorgeI9-Jul-03 8:23 
QuestionLZW anybody?? Pin
keb9-Jul-03 6:31
keb9-Jul-03 6:31 
AnswerRe: LZW anybody?? Pin
Larry Antram9-Jul-03 7:33
Larry Antram9-Jul-03 7:33 
GeneralRe: LZW anybody?? Pin
keb9-Jul-03 7:40
keb9-Jul-03 7:40 
GeneralRe: LZW anybody?? Pin
Larry Antram9-Jul-03 7:45
Larry Antram9-Jul-03 7:45 

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.