Advertisement

Handles Handles Handles...

Started by April 23, 2000 12:25 AM
0 comments, last by Uthman 24 years, 7 months ago
Does anyone know how to get the handle of a bitmap? For example, I have the picture "pic.bmp" on my desktop- how do i make/get a handle for it?
"a low level aho master like you couldn't kill me even if I let you"
First, what language are you using? I''ll assume c++, if not, e-mail me and I''ll help.

first include windows.h then all you need to do is paste in the follwoing line=

HANDLE h = LoadImage(0,"c:/windows/desktop/pic.bmp",IMAGE_BITMAP,0,0,LR_DEFAULTSIZE / LR_LOADFROMFILE);

and change the file path if nesscary.

As I said, if you are not using c++, or this is not what you needed, e-mail me and I''ll try to help then.

tlhngan Hol vljathlaHbe'' - I do not speak klingon
bach ghlchraj - Your nose is shiny

qaStaHvlS wa'' ram loS SaD Hugh SljlaH etbogh loD - 4000 throats may be cut in one night by a running man

-- Khaless
tlhngan Hol vljathlaHbe'' - I do not speak klingonbach ghlchraj - Your nose is shinyqaStaHvlS wa'' ram loS SaD Hugh SljlaH etbogh loD - 4000 throats may be cut in one night by a running man -- Khaless

This topic is closed to new replies.

Advertisement