M
Michael Sgier
Hello
following questions. The program runs on windows but on linux i get
the following error at the end but first:
the Bitmap_id serves what for? 0x4d42 is that an address?
the HDC serves what for? Do i need that on linux? and
then the 256 at keypressed? What for?
////// Defines
#define BITMAP_ID 0x4D42 // the universal bitmap ID
////// Global Variables
HDC g_HDC; // global device context
bool keyPressed[256]; // holds true for keys that are pressed
// LoadBitmapFile
// desc: Returns a pointer to the bitmap image of the bitmap specified
// by filename. Also returns the bitmap header information.
// No support for 8-bit bitmaps.
unsigned char *LoadBitmapFile(char *filename, BITMAPINFOHEADER
*bitmapInfoHeader)
{
....ektzwei/src/projektzwei.cpp:31: error: type specifier omitted for
parameter `BITMAPINFOHEADER'
What is meant with BITMAPINFOHEADER? Can i define my own typ? the above
is running with
windows but not with linux. If i want to create a new typ
BITMAPINFOHEADER , how should i do
that??
many thanks and regards
Michael
following questions. The program runs on windows but on linux i get
the following error at the end but first:
the Bitmap_id serves what for? 0x4d42 is that an address?
the HDC serves what for? Do i need that on linux? and
then the 256 at keypressed? What for?
////// Defines
#define BITMAP_ID 0x4D42 // the universal bitmap ID
////// Global Variables
HDC g_HDC; // global device context
bool keyPressed[256]; // holds true for keys that are pressed
// LoadBitmapFile
// desc: Returns a pointer to the bitmap image of the bitmap specified
// by filename. Also returns the bitmap header information.
// No support for 8-bit bitmaps.
unsigned char *LoadBitmapFile(char *filename, BITMAPINFOHEADER
*bitmapInfoHeader)
{
....ektzwei/src/projektzwei.cpp:31: error: type specifier omitted for
parameter `BITMAPINFOHEADER'
What is meant with BITMAPINFOHEADER? Can i define my own typ? the above
is running with
windows but not with linux. If i want to create a new typ
BITMAPINFOHEADER , how should i do
that??
many thanks and regards
Michael