• Create Account

### #ActualSpirrwell

Posted 08 July 2012 - 07:18 PM

Well, assuming you loaded the image as literally "ImageName.png" as opposed to something like "Data/Images/ImageName.png", then it should be in the same directory as the application. DLL files should also be in the same directory as well, it would come up with a DLL error if it couldn't find them. Anyway, as for your dilemma, I'm a bit puzzled as to why you would use SDL_RWFromFile() instead of IMG_Load().

I've had really bad luck in the past getting RW pointers to work properly. I suppose you could try SDL_RWFromFP and see if you still get a NULL pointer. That's about all I can think of for now, perhaps someone else has a better idea.

### #1Spirrwell

Posted 08 July 2012 - 07:16 PM

Well, assuming you loaded the image as literally "ImageName.png" as opposed to something like "Data/Images/ImageName.png", then it should be in the same directory as the application. DLL files should also be in the same directory as well, it would come up with a DLL error if it couldn't file them. Anyway, as for your dilemma, I'm a bit puzzled as to why you would use SDL_RWFromFile() instead of IMG_Load().

I've had really bad luck in the past getting RW pointers to work properly. I suppose you could try SDL_RWFromFP and see if you still get a NULL pointer. That's about all I can think of for now, perhaps someone else has a better idea.

PARTNERS