Icons are kicking my arse. I am using Borlands Free 5.5.1 command line compiler and making a console application.
I figured out how to make a .res file and after searching all over the place, found this script...
#define MYICON 100
MYICON ICON "file.ico"
So I put that in there with my filename and used brcc32.exe to make a .res file from the .rc file.
I then put #include "myres.res" in my file that holds main, but it wouldn't compile with it in there. So I took that out...
So I have an executable and a .res file. I tried using ilink32 myexe myres and that didn't work. I got an error stating that my executable contains an invalid OMF record, type 0x4d... whatever the hell that means.
I tried looking (searching) at this site and many others, and I am still having no luck finding how to do this.
If you know how... can you help me before I take a bat to my laptop. I am going to keep searching... but it is looking grimm. I found a million and a half ways to make an Icon and bits and pieces of how to include one.