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

C / C++ / MFC

 
GeneralRe: C++ code Pin
shyampasari4-Jun-09 1:36
shyampasari4-Jun-09 1:36 
GeneralRe: C++ code Pin
Cedric Moonen4-Jun-09 1:54
Cedric Moonen4-Jun-09 1:54 
AnswerRe: C++ code Pin
norish4-Jun-09 4:28
norish4-Jun-09 4:28 
QuestionBMP Reader C Code Pin
Mitesh Karwa4-Jun-09 0:10
Mitesh Karwa4-Jun-09 0:10 
NewsRe: BMP Reader C Code Pin
CPallini4-Jun-09 0:30
mveCPallini4-Jun-09 0:30 
GeneralRe: BMP Reader C Code Pin
Mitesh Karwa6-Jun-09 23:40
Mitesh Karwa6-Jun-09 23:40 
GeneralRe: BMP Reader C Code Pin
CPallini7-Jun-09 0:13
mveCPallini7-Jun-09 0:13 
GeneralRe: BMP Reader C Code Pin
Mitesh Karwa7-Jun-09 0:26
Mitesh Karwa7-Jun-09 0:26 
GeneralRe: BMP Reader C Code Pin
CPallini7-Jun-09 3:02
mveCPallini7-Jun-09 3:02 
GeneralRe: BMP Reader C Code Pin
Mitesh Karwa7-Jun-09 23:27
Mitesh Karwa7-Jun-09 23:27 
GeneralRe: BMP Reader C Code Pin
Mitesh Karwa7-Jun-09 0:16
Mitesh Karwa7-Jun-09 0:16 
AnswerRe: BMP Reader C Code Pin
Hamid_RT4-Jun-09 1:07
Hamid_RT4-Jun-09 1:07 
QuestionRe: BMP Reader C Code Pin
Mitesh Karwa6-Jun-09 23:32
Mitesh Karwa6-Jun-09 23:32 
AnswerRe: BMP Reader C Code Pin
KarstenK4-Jun-09 4:09
mveKarstenK4-Jun-09 4:09 
AnswerBitmap is the Native Windows Image Format Pin
Baltoro4-Jun-09 5:59
Baltoro4-Jun-09 5:59 
...Since, you are trying to read a Bitmap (presumably stored on disk), I'm assuming that you are attempting to write Windows code. Your posted code example has numerous errors. You should start by reading up on the: Bitmap Storage Format, MSDN[^].
This will explain the overall data structure of a bitmap file stored on your computer. You should become familiar with the Bitmap header structure, so that you can read the bitmap file correctly. Here is the reference for the Bitmap Header Types[^]. You should read the headers first to be sure that the image is, in fact, a 24-bit bitmap type (there are numerous variations).
The preferred method is to open the bitmap file with, CreateFile. Then you can read the byte arrays in whatever way is appropriate to your applicatrion.
GeneralRe: Bitmap is the Native Windows Image Format Pin
Mitesh Karwa7-Jun-09 0:47
Mitesh Karwa7-Jun-09 0:47 
AnswerRe: BMP Reader C Code Pin
XcentY1-Jun-17 3:06
XcentY1-Jun-17 3:06 
QuestionIs there iges model/file show UIControl or code? Pin
BegtostudyBoy3-Jun-09 22:53
BegtostudyBoy3-Jun-09 22:53 
QuestionRe: Is there iges model/file show UIControl or code? Pin
CPallini4-Jun-09 0:36
mveCPallini4-Jun-09 0:36 
AnswerRe: Is there iges model/file show UIControl or code? Pin
BegtostudyBoy4-Jun-09 1:21
BegtostudyBoy4-Jun-09 1:21 
QuestionREQUEST FOR HELP Pin
Ramin O3-Jun-09 21:09
Ramin O3-Jun-09 21:09 
AnswerRe: REQUEST FOR HELP Pin
CPallini3-Jun-09 21:13
mveCPallini3-Jun-09 21:13 
QuestionMove Up and Move Down functionality to CListCtrl Pin
Royaltvk3-Jun-09 20:47
Royaltvk3-Jun-09 20:47 
QuestionRe: Move Up and Move Down functionality to CListCtrl Pin
CPallini3-Jun-09 20:49
mveCPallini3-Jun-09 20:49 
AnswerRe: Move Up and Move Down functionality to CListCtrl Pin
Royaltvk4-Jun-09 0:38
Royaltvk4-Jun-09 0:38 

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.