I have an application that as soon as it starts, opens a Windows Open File dialog letting the user browse for a video to open. When a video is selected, it starts playing. I want to do a setIcon on the video window. To do that, I'm using SDL_WM_SetIcon. I have to create an SDL_Surface from a bmp on disk, so I use SDL_LoadBMP...
Now, I have to tell the path of the icon... I could give the full path, but that would mean it would only work on my PC. My idea was not to give any path, just the name of the image... But, the "default path" it seems to be using is the one where the video file is, no the one where the application executed... What can I do?