Re: An Icon with My Exe
- Posted by jimcbrown (admin) Sep 20, 2010
- 1819 views
I think at this point, euc can't make use of an rc file, so I've not been able to get an icon with my exe.
Jim, you seemed to indicate that rc could attach the icon after euc built it, but I can't find docs for that functionality. Did I misunderstand?
Actually, this is already present in source/makefile.wat - except the devs decided to use wrc.exe instead of rc.exe
So you'd need to do this
wrc -q -ad myapp.res myapp.exe
Where myapp.res is a compiled resource. Compiled resources are generated from resource compilers from .rc scripts (sort of like, .rc is the source code and .res is the object file, I guess?).
From http://www.vbaccelerator.com/home/vb/code/libraries/Resources/Using_RC_EXE/article.asp, it seems you can do this using M$'s rc.exe as follows:
RC /r /fo TEST32.RES TEST.RC
So you'd need to create myapp.rc with the right contents, then run the two commands:
rc /r /fo myapp.res myapp.rc wrc -q -ad myapp.res myapp.exe
(I'm assuming here that OpenWatcom's (?) wrc.exe and M$'s rc.exe use the same .rc and .res file formats. I'm not 100% certain this is the case, but it seems like a reasonable assumption.)