From Barry Kauler. He use COM/OLE.

http://www.goosee.com/x86/loadgraphics.htm

stanks
Posted on 2004-02-20 14:34:46 by stanks
Isn't this already included in masm8 ? :confused:
Posted on 2004-02-20 15:03:39 by Ultrano
I don't know...i didn't check. Sorry if it is already there. :grin:

stanks
Posted on 2004-02-20 15:06:50 by stanks
Yes, it's included in Masm32V8

Quote:

>>The problem is, I knew nothing about OLE (Object Linking and Embedding) and COM (Common Object Model). For MASM programmers, there's a whole lot of stuff on this topic at Hutch's asm site (or was that Iczelion's site? -- whatever), submitted by Ernie Murphy. Also, this COM stuff is at Ernie's own site: http://here.is/COMinASM.

Have a look at the manual of masm32.lib:


BitmapFromFile
BitmapFromResource
BitmapFromMemory


An example:


BitmapFromResource proc hModule:DWORD, lpName:DWORD

Description
BitmapFromResource returns a bitmap handle from a program resource.
An image may be in either .bmp, .gif, .jpg, or .wmf format
Posted on 2004-02-21 05:29:47 by Vortex
Barry and I worked this out a while ago. It was Barry who first noticed the interface MS provided and together we worked out how to use it.

Eventually, I made a set of simple wrappers for it for non-COM based apps to use these features.
Posted on 2004-02-22 02:12:56 by Ernie
Thanks, Ernie :alright:
Posted on 2004-02-22 02:24:25 by Ultrano