Solved

Bitmap Files

Posted on 1998-11-26
3
198 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
  • 2
3 Comments
 
LVL 3

Accepted Solution

by:
plaroche earned 100 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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Suggested Solutions

Templates For Beginners Or How To Encourage The Compiler To Work For You Introduction This tutorial is targeted at the reader who is, perhaps, familiar with the basics of C++ but would prefer a little slower introduction to the more ad…
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 tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.

803 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