Hi there,
I like to display several images during runtime of my programm.
Charles Petzold uses in his book "Programming Windows" a function called
BITMAPFILEHEADER* DibLoadImage( szName filename )
from DIBFILE.H to manage this.
#include "dibfile.h"
BITMAPFILEHEADER* pbmfh;
pbmfh = DibLoadImage( "myFile.bmp" );
...
SetDIBitsToDevice( pbmfh.cx, pbmfh.cy, ... );
DevC++ doesn't know anything about the header-file and it's functions
:-(
PS:
LoadImage( ) won't work cause it returns a HANDLE instead of a
BITMAPFILEHEADER.
|