Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.


Handles Handles Handles...

This topic is 6942 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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?

Share this post

Link to post
Share on other sites
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

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!