Do you happen to have any of the code you messed about with laying about?
I've found some code here that handles the text aspects of the clipboard just fine(Apprently, havn't tried it myself)
but not images.
I'm guessing the reason you're getting memory exceptions is because the clipboard api is returning a bitmap structure to you which it's self contains another pointer to the actual image data.
If so it would be a simple case of wrting a c wrapper to take the returned handled and acquire the pointer from that.
I just don't have mingw installed atm so can't be arsed to check, but I will do tomorrow.
I've found some code here that handles the text aspects of the clipboard just fine(Apprently, havn't tried it myself)
but not images.
I'm guessing the reason you're getting memory exceptions is because the clipboard api is returning a bitmap structure to you which it's self contains another pointer to the actual image data.
If so it would be a simple case of wrting a c wrapper to take the returned handled and acquire the pointer from that.
I just don't have mingw installed atm so can't be arsed to check, but I will do tomorrow.