Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 206
  • Last Modified:

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.
0
dirtdart
Asked:
dirtdart
  • 2
1 Solution
 
plarocheCommented:
It does not say that from my docs, what version do you use?

The flag looks available to me. If you want I can test your source for you.
0
 
plarocheCommented:
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...
0
 
dirtdartAuthor Commented:
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.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now