News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Another Bitmap Question...yes Windows GDI

Started by OceanJeff32, October 09, 2005, 04:32:43 AM

Previous topic - Next topic

OceanJeff32

Once again from the confusing world of Windows GDI, comes a question from MASM programmers about BITMAPS!!   :boohoo:

:lol

Please check out this attachment if you are interested in helping, I'm trying to BitBlt the HAPPY.BMP to the screen.

Later, and thanks,

Jeff C
:eek

[attachment deleted by admin]
Any good programmer knows, every large and/or small job, is equally large, to the programmer!

Tedd

Here's one I made earlier.. :wink

(It uses LoadBitmap, instead of LoadImage, but they both obtain the bitmap from the resources, so there's little difference.)


[attachment deleted by admin]
No snowflake in an avalanche feels responsible.

Vortex

Hi Jeff,

Nice example. Why do you need to declare the API functions with the EXTERN statement when include files from the masm32 package are available?

Vortex

Checking the win32.hlp , I found this definition :

QuoteHANDLE LoadImage(

    HINSTANCE hinst,    // handle of the instance that contains the image
    .
    .

Maybe, your code should contain something like PUSH HINST instead of PUSH MEMDC2

invoke LoadImage,hInstance,ADDR filename,IMAGE_BITMAP,0,0,LR_LOADFROMFILE

You can check the attachment for a simple example.

[attachment deleted by admin]