My call now looks like this:
Originally Posted by anonytmouse
And the call to get last error looks like this:
TImage = (HBITMAP)LoadImage(NULL, Tmem.DisplayImage, IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE);
Which prints '2'
error = GetLastError();
I have never used GetLastError() before so I don't know what this means, error is of type DWORD
Edit: After surfing MSDN I found that 2 means "File not found" but when I print Tmem.DisplayImage it successfully reads "F:\drive\projects\function tests\poop.bmp"