Hi
I was just reusing some of my region calculator code to make a simple slideshow app, when I noticed a bizarre bug. When I search the current folder for files (FindFirstFile/FindNextFile/FindClose) and try to load the images with the IPicture interface, OleLoadPictureFromPath sistematically fails. However if I launch a GetOpenFileName box and let the user pick a file, it works. :confused:
Is there any bug related to FindFirst and IPicture? Is it just my fault? Has anyone had a similar problem before?
Posted on 2003-09-01 14:47:32 by QvasiModo
What is the error code from OleLoadPicturePath?
Posted on 2003-09-01 17:35:40 by Morris
FindFirst and etc only return the filename in the structre, You need to combine that to the directory path to get the full path of the file.
Posted on 2003-09-01 18:43:12 by Eóin
Thanks for your replies :)

The error code is 0x80004007 (Get shared memory allocator failure).

I have yet to try getting the full pathname to load the picture (that probably was the problem, I think OleLoadPctureFromPath requires a full pathname).
Posted on 2003-09-04 12:45:14 by QvasiModo