News:

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

OleLoadPictureFile

Started by Jimg, March 31, 2009, 07:00:11 PM

Previous topic - Next topic

Jimg

What is the call to OleLoadPictureFile?

in Oleaut32.inc it is defined as OleLoadPictureFile PROTO :DWORD,:DWORD,:DWORD,:DWORD,:DWORD

but on msdn, it only has two parameters.

I'm only looking because OleLoadPicturePath does not support .png files while OleLoadPictureFile supposedly does.

Tedd

HRESULT OleLoadPictureFile(VARIANT varFileName, LPDISPATCH *lplpdispPicture);

The first argument is 'VARIANT' type -- http://msdn.microsoft.com/en-us/library/ms221627.aspx
So it looks like that takes up the first 4 dwords, and then LPDISPATCH is just a normal dword size pointer.
Have fun deciphering it :bdg
No snowflake in an avalanche feels responsible.

Jimg

Thanks Tedd.  I finally just gave up and went to gdiplus.  I don't like it, but it works, and it's no more complicated, ugly, and messy than this ole stuff.

Vortex


Jimg

Looks like it was a good thing I gave up.  Wish I had those hours back though :boohoo: