Hey everyone I am new to SDL, and I saw and read a topic about the IMG_Load function in SDL2. I am currently going through the book SDL2 Game Development with Shawn Mitchell. I am currently on Chapter 2. I could not load BMP images without installing the SDL2 Image Header, everything seemed to be working fine, until I ran into other BMP, JPEG, PNG files were not loading. I researched and found I needed more dlls, so I placed all the Image dlls in the debug folder, but no luck. Nothing pretty much seems to be working here. I created a initImage Function to handle the Image Initialization, it currently works, though, the loading of the images do not. I am not sure what is problem, I tried at least 10 different images, none of them work expect the bmp images I previously had before I installed the header files. I even tired going on LazyFoo's website and following those directions. I know the images are not corrupted or anything, I mean I can open and close them just fine. I just can't Load them.
Here is the source code to my Function, but I am pretty sure it isn't the issue: