If you can search the msdn of microsoft vc++, you can find what i attached. hope these files help you.
they implemented the read, save and display the dib and bmp files
well it almost worked. except i don't have an stdafx.h file. at first compile there was only one error that the stdafx.h file was not found, after remarking that line out it produced 31 errors. The header files with the letters dib that i have are:
the sample code is used under the envioroment of VC++.
And the afxstd.h is a standard MFC header which is automatically generated when the MFC project is created.
If your dev c++ doesnot support it, you have to modify the related classes accordingly, but the structure of the sample code can be reused.
For example CFile CPalette. You have to relplace CFile with FILE and use the hPalette instead of CPalette. I am not familar with dev c++, so you should know how to translate.
The HDIB handler is declared vy using DECALRE_HANDLE which is included in "mmsystem.h" the HPalette is included in "wingdi.h".
Last edited by sandodo; June 26th, 2002 at 09:39 PM.
* The Best Reasons to Target Windows 8
Learn some of the best reasons why you should seriously consider bringing your Android mobile development expertise to bear on the Windows 8 platform.