Solved

Loading Bitmap from external file

Posted on 2001-06-24
1
176 Views
Last Modified: 2013-11-20
HI
how can i load a bitmap from an external file without using resources.....??
0
Comment
Question by:raqadi
1 Comment
 
LVL 49

Accepted Solution

by:
DanRollins earned 100 total points
ID: 6222506
Use the LoadImage API.  To wit:

HANDLE hImage = ::LoadImage (NULL,
               "C:\\Images\\Fish.bmp",
               IMAGE_BITMAP, 0, 0,
               LR_LOADFROMFILE | LR_CREATEDIBSECTION);

See HOWTO: How To Use LoadImage() to Read a BMP File
ID: Q158898

http://support.microsoft.com/support/kb/articles/q158/8/98.asp

-- Dan
0

Featured Post

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Windows Drag & Drop Location 2 100
Expand data scrubbing tool 13 32
format the code in java 6 95
changeXy challenge 13 82
Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

809 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