Hi!
I'm using GDI+ functions to load jpg file.
If I use this "Image *image = new Image(L"C:\\icons.jpg", false);" then the image variable is always null. Why?
And remember, icons.jpg is on the right path "C:\icons.jpg".
Printable View
Hi!
I'm using GDI+ functions to load jpg file.
If I use this "Image *image = new Image(L"C:\\icons.jpg", false);" then the image variable is always null. Why?
And remember, icons.jpg is on the right path "C:\icons.jpg".
Did you GdiplusStartup before window creation (with corresponding call to GdiplusShutdown when done with your app)?
Goody! It works now. The problem was, that I didn't use the GDI+ startup and shutdown method.
Thanks!