?
Solved

Bitmap Files

Posted on 1998-11-26
3
Medium Priority
?
204 Views
Last Modified: 2010-04-01
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
Comment
Question by:dirtdart
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 3

Accepted Solution

by:
plaroche earned 400 total points
ID: 1178714
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
 
LVL 3

Expert Comment

by:plaroche
ID: 1178715
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
 
LVL 5

Author Comment

by:dirtdart
ID: 1178716
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

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

  Included as part of the C++ Standard Template Library (STL) is a collection of generic containers. Each of these containers serves a different purpose and has different pros and cons. It is often difficult to decide which container to use and …
Many modern programming languages support the concept of a property -- a class member that combines characteristics of both a data member and a method.  These are sometimes called "smart fields" because you can add logic that is applied automaticall…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
Suggested Courses
Course of the Month13 days, 11 hours left to enroll

801 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question