0

How to read/write bmp file in MFC? I did following way.

To read the BMP file

Used fread()/fseek()/ftell() function

For writing

Used fwrite() function and it is working.

Please suggest any other way doing of reading /writing bmp file in MFC.

Client will send bmp file and server will read and save the image file.

abhi312
  • 364
  • 1
  • 6
  • 25
  • possible duplicate of [how to load image from file using MFC](http://stackoverflow.com/questions/3029780/how-to-load-image-from-file-using-mfc) – Werner Henze Jun 26 '15 at 08:07

1 Answers1

2

If you're developing for Windows use the ATL/MFC CImage class - it is part of the shared MFC/ATL classes.

Here is a good tutorial on Bitmaps.

Blacktempel
  • 3,935
  • 3
  • 29
  • 53
Shane_Yo
  • 770
  • 8
  • 24