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".
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".
Current projects:
1) User Interface Development Kit (C++)
2) HTML SDK (C++)
3) Classes (C++)
4) INI Editor (Delphi)
Did you GdiplusStartup before window creation (with corresponding call to GdiplusShutdown when done with your app)?
CProgramming FAQ
Caution: this person may be a carrier of the misinformation virus.
Goody! It works now. The problem was, that I didn't use the GDI+ startup and shutdown method.
Thanks!
Current projects:
1) User Interface Development Kit (C++)
2) HTML SDK (C++)
3) Classes (C++)
4) INI Editor (Delphi)