?
Solved

LoadBitmap() and DrawBitmap()

Posted on 1997-06-03
1
Medium Priority
?
498 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
[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
1 Comment
 
LVL 4

Accepted Solution

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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Windows programmers of the C/C++ variety, how many of you realise that since Window 9x Microsoft has been lying to you about what constitutes Unicode (http://en.wikipedia.org/wiki/Unicode)? They will have you believe that Unicode requires you to use…
This is a short and sweet, but (hopefully) to the point article. There seems to be some fundamental misunderstanding about the function prototype for the "main" function in C and C++, more specifically what type this function should return. I see so…
Video by: Grant
The goal of this video is to provide viewers with basic examples to understand and use for-loops in the C programming language.
Video by: Grant
The goal of this video is to provide viewers with basic examples to understand and use nested-loops in the C programming language.
Suggested Courses
Course of the Month13 days, 10 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