Solved

Bitmap Files

Posted on 1998-11-26
3
191 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

In days of old, returning something by value from a function in C++ was necessarily avoided because it would, invariably, involve one or even two copies of the object being created and potentially costly calls to a copy-constructor and destructor. A…
C++ Properties One feature missing from standard C++ that you will find in many other Object Oriented Programming languages is something called a Property (http://www.experts-exchange.com/Programming/Languages/CPP/A_3912-Object-Properties-in-C.ht…
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.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

757 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now