Hi to avery body, I have a question about loading a JPEG image from a file and displaying it on a window; I being searching the web for accouple hours but have not found too much, all i know is the windows has a build-in librery called Ole32.dll and Ole32pro.dll that have a few functions for this, the must important functions are: CreateStreamOnHGlobal and OleLoadPicture with does two and some more you should be able to do it, but I don't know how to use them and I don't have the value for IID_IPicture variable, I found a sample in http://ourworld.compuserve.com/homepages/ernies_world/a.htm but is made for MASM not FASM and FASM doesn't have coinvoke macro and the .if macro doesn't work (but that's not a big problem).

What I'm trying to do is include the JPEG file in the resource section and then use the LoadBitmap to get the image handle and then pass it to CreatePatternBrush to create a brush with the image to use it as a Window default background; here is the code for that (it works but only with BMP files).


invoke LoadBitmap,,IDB_ASSIGN
invoke CreatePatternBrush,eax
mov ,eax


COULD SOME BODY HELP ME PLEASE!!!
Posted on 2003-02-13 16:33:35 by alonso
Posted on 2003-02-13 16:57:25 by Hiroshimator


Thank's for your reply, but can you please tell me what's What's Ernie's web site address!!!
Posted on 2003-02-13 17:58:59 by alonso
http://ourworld.compuserve.com/homepages/ernies_world/a.htm

you might wish to check our FAQ forum, much info there :)
Posted on 2003-02-14 05:24:55 by Hiroshimator