FreeImage newbie
-
Hello there, I was looking at the Freeimage article by Markus Loibl. his MFC program works great but i was trying to test it myself using a small application. here is the code.
#include < iostream.h > #include < stdlib.h > #include < freeimage.h > void main() { FIBITMAP *dib = FreeImage_Load(FIF_JPEG, "1.jpg", 0); system("pause"); }
I know it does nothing but shouldnt FreeImage_Load(...) return something? VC says that it returns 0x000... I have included the lib file in my project settings and it compiles ok. the jpg file is in the debug directory with the executable. Any comment would be welcome. Thanks. -Tareq -
Hello there, I was looking at the Freeimage article by Markus Loibl. his MFC program works great but i was trying to test it myself using a small application. here is the code.
#include < iostream.h > #include < stdlib.h > #include < freeimage.h > void main() { FIBITMAP *dib = FreeImage_Load(FIF_JPEG, "1.jpg", 0); system("pause"); }
I know it does nothing but shouldnt FreeImage_Load(...) return something? VC says that it returns 0x000... I have included the lib file in my project settings and it compiles ok. the jpg file is in the debug directory with the executable. Any comment would be welcome. Thanks. -Tareq -
In Markus Loibl's code, it returns some value which is not 0. -Tareq