Solved

LoadBitmap() and DrawBitmap()

Posted on 1997-06-03
1
491 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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Have you thought about creating an iPhone application (app), but didn't even know where to get started? Here's how: ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ Important pre-programming comments: I’ve never tri…
Summary: This tutorial covers some basics of pointer, pointer arithmetic and function pointer. What is a pointer: A pointer is a variable which holds an address. This address might be address of another variable/address of devices/address of fu…
The goal of this video is to provide viewers with basic examples to understand opening and writing to files in the C programming language.
The goal of this video is to provide viewers with basic examples to understand how to use strings and some functions related to them in the C programming language.

760 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

22 Experts available now in Live!

Get 1:1 Help Now