Skip to main content
gamedev.net
🔒 Locked

_lread problem, loading bitmap

Started by PPCThug 1 reply 250+ views
Original Post
PPCThug
PPCThug
ok i''m reading a book on programming games. I copyed part of a function into my code, now I got this code to compile without error, but then I changed the "pointer to a bitmap struct" to a "global struct" of the same type. now when I compile I get [cannot convert ''BITMAPFILEHEADER'' to ''void*'' for argument ''2''to] reffering to this function call: _lread(file_handle, bitmap.bitmapfileheader,sizeof(BITMAPFILEHEADER)); when bitmap whas a pointer it read bitmap->bitmapfile... and so on. from VC++ Docs I know that I should be useing a win32 function, but I wanted to stay as close to the original code untill I got it to work.
Bloodshed Dev-C++ 4.01 DX 8.0a DX SDK 6.1 win98 #define WIN32_LEAN_AND_MEAN the Particle Projection Cannon fires a shimmering blue bolt, much like a cross between lightning and a sine wave that ripples along its path.
Bloodshed Dev-C++ 4.9.8.0 Mingw DX 9.0a DX SDK 6.1win2k#define WIN32_LEAN_AND_MEANthe Particle Projection Cannon fires a shimmering blue bolt, much like a cross between lightning and a sine wave that ripples along its path.mechwarrior 2 mercenaries, 4 particle projection cannons, thug chassis
niyaw
niyaw
take address of the header variable.
PPCThug
PPCThug
ok &bitmap.bitmapinfo... works, thanks!



Bloodshed Dev-C++ 4.01
DX 8.0a DX SDK 6.1
win98
#define WIN32_LEAN_AND_MEAN
the Particle Projection Cannon fires a shimmering blue bolt, much like a cross between lightning and a sine wave that ripples along its path.
Bloodshed Dev-C++ 4.9.8.0 Mingw DX 9.0a DX SDK 6.1win2k#define WIN32_LEAN_AND_MEANthe Particle Projection Cannon fires a shimmering blue bolt, much like a cross between lightning and a sine wave that ripples along its path.mechwarrior 2 mercenaries, 4 particle projection cannons, thug chassis

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.