Link to home
Start Free TrialLog in
Avatar of dirtdart
dirtdart

asked on

Bitmap Files

OK.  It says in the Win32 SDK under LoadImage that the LR_LOADFROMFILE flag is not available under NT.  If this is the case (and sorry if I'm stupid about this) then how the heck do you load a bitmap from a file under NT?  I'd like for my program to be compatible with NT, 95 and 98.
ASKER CERTIFIED SOLUTION
Avatar of plaroche
plaroche

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of plaroche
plaroche

Go check microsoft article:

Article ID: Q158898

in the Search section from MS web's site. Search in the knowledge base. it applies for nt4, 95, etc...
Avatar of dirtdart

ASKER

This is a qote from my Win32 SDK that came with Visual Studio 97 Professional Edition.

Windows 95: If the fuLoad parameter includes the LR_LOADFROMFILE value, lpszName is the name of the file that contains the image.

Windows NT: LR_LOADFROMFILE is not supported


That's what had me worried.  Nowhere in the article does it say "NT will load from a file anyway."  So I didn't know if there was something I was missing (possible another function that needed to be used in NT) or what.  However, that KB article seems to be exactly what I need.  Especially since it is giving an example of how to paint a form with the loaded bitmap.  That's exactly what I'm trying to do.  Thanks for the help.