I'm working on a little softare which is meant to display a png file directly on the desktop. i've found a way of doing the later part with a HBITMAP strukture. Yet I've spent days by now searching for a way to load a .PNG file to such a HBITMAP.
The code I found eventuall (which I also could compile) was this one from this page:
http://logiklabs.tumblr.com/post/22946728048/how-to-load-an-image-resource-into-a-hbitmap
Think it would work perfectly. My problem is though that this one is meant to use already attached .png files.
Yet I need the possibility to use at runtime a file from an (at compile time) unknown location.
So how could I alter that script to achieve that? My C++ knowledge is not the best unfortunately and the MS-documentation of thsoe related functions did not really help either :/
I'd be very very thankful!