Solved

LoadBitmap() and DrawBitmap()

Posted on 1997-06-03
1
495 Views
Last Modified: 2008-03-17
Can I have a complete program that uses the functions
LoadBitmap() and DrawBitmap(). I tried doing:

hBitmap = LoadBitmap(hInstance, "Brick");

but I get NULL and therefore can't draw the bitmap.
0
Comment
Question by:jfoley053097
1 Comment
 
LVL 4

Accepted Solution

by:
emmons earned 50 total points
ID: 1250742
First, this question really belongs in the Windows programming section.
Second, what is "DrawBitmap"?

Have you defined the resource "Brick" in your resource file?

Brick BITMAP DISCARDABLE "Brick.bmp"

You can get a pretty good test without this, by loading a system resource like OBM_RGARROW and trying to draw it on the screen. But if you are getting an error back from LoadBitmap, it is probably a resource issue. Check to make sure that the resource name is not all caps (implying that it is numeric).


0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

An Outlet in Cocoa is a persistent reference to a GUI control; it connects a property (a variable) to a control.  For example, it is common to create an Outlet for the text field GUI control and change the text that appears in this field via that Ou…
Preface I don't like visual development tools that are supposed to write a program for me. Even if it is Xcode and I can use Interface Builder. Yes, it is a perfect tool and has helped me a lot, mainly, in the beginning, when my programs were small…
The goal of this video is to provide viewers with basic examples to understand and use structures in the C programming language.
The goal of this video is to provide viewers with basic examples to understand opening and reading files in the C programming language.

740 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