473,486 Members | 2,353 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

How to use LoadBitmap

Ben
Hi all,

I'm using eMbedded Visual C++, and I would like to read in
bitmap file for further analyze.
I found a command "LoadBitmap" may fufill my enquire.
However, I don't understand the description so much. The
description is as follows:

HBITMAP LoadBitmap( HINSTANCE hInstance, LPCTSTR
lpBitmapName );

where,

hInstance
[in] Handle to the instance of the module whose
executable file contains the bitmap to be loaded.

lpBitmapName
[in] Long pointer to a null-terminated string that
contains the name of the bitmap resource to be loaded.
Alternatively, this parameter can consist of the resource
identifier in the low-order word and zero in the high-
order word. The MAKEINTRESOURCE macro can be used to
create this value.

Has anyone used this command before? If yes, can you leave
an example to show how to use it?

Thanks for any help.

Ben
Nov 16 '05 #1
0 1130

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
2928
by: mark | r | last post by:
anyone know a useful way of hiding image paths so images on my site cant be directly linked to? ive seen sites that use <img src="image.asp?/moo/fred/image01.jpg"> (where the path starts from...
2
1200
by: Mahesh Kumar. R | last post by:
hello everybody, i'm new to this group and also new bie to vc++. i want to develop a parser like program which can able to identify the predefined wordings -> windows control events(vc++). example...
6
1818
by: George Styles | last post by:
Hi, I am trying to work out what a block of C++ does, but I am having trouble understanding the syntax. I know Delphi well, so am happy with objects etc, its just this syntax I dont understand. ...
1
1134
by: matt | last post by:
I have a function which displays a bitmap on a picture control. It looks like the function can only be called once: CDlg::OnDisplay() { VERIFY(m_bmp.LoadBitmap(hole1));...
1
2107
by: Joseph | last post by:
I am trying to load a jpg from a website into the main windows, i am trying to modify a few examples that i found in the web but i havent been able to do so. so far i think i got the jpg on a...
0
785
by: Zhenxin Li | last post by:
Hello, I create a managed C++ WIN32 form project. I insert some bitmaps into rc file of this project. But when I use LoadBitmap, it fails. hBitmap = ::LoadBitmap(GetModuleHandle(NULL),...
1
2392
by: Jigar Mehta | last post by:
Hye friends!! Jigar Mehta from India. Currently I am loading one BMP file around 2.5 MB from the disk from my VC program and show it to its DC... But while CBitmap object tries to load it by...
0
1901
by: ±è¿ë°Ç | last post by:
i tried to set listview's background image (using managed C++) first try, i maked bitmap and set back ground image like below code but, it had no effect LiveView * listViewJobTable .......
12
4015
by: Lee | last post by:
I have the following code using System; using System.Windows.Forms; using System.Drawing; using System.Collections; namespace FINN {
0
7105
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
6967
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7132
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7180
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7341
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5439
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4870
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3071
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
600
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.