I have installed freepascal on Windows 7, but did not install an IDE.
How do I add an icon to the program I am developing? I have searched using Google, but most results point to the Lazarus IDE forums. The tips there all seem to refer to some sort of *.lpi file which I don't have.
Thanks.
[update]
I got it partially working. I can see the icon when looking at the EXE in File Explorer. But when launching the application the icon does not appear in the title bar.
[update]
The program is a video game utilizing SDL. I did some research and have gathered together the following lines of code:
RWop := SDL_RWFromFile('gharena.ico', 'rb');
ICOimage := IMG_Load_RW(RWop, 1);
//ICOcolorkey := SDL_MapRGBA(ICOimage^.format, 0, 0, 0, 0);
//SDL_SetColorKey(ICOimage, SDL_SRCCOLORKEY, ICOcolorkey);
SDL_WM_SetIcon(ICOimage, Nil);
It seems to work, mostly. The icon appears in both the title bar and the taskbar. However, the title bar icon has messed up transparency. The icon is a 32-bit sprite named 'gharena.ico'. When running the game the transparent parts of the image are rendered in black in the program title bar. The taskbar icon is okay and has proper transparency.
In the code above you can see I have messed with setting the color key. But it doesn't seem to matter.