RE: Icon Display?
- Posted by Ray Smith <smithr at ix.net.au> Apr 16, 2002
- 414 views
Andy Serpa wrote: > > Ray Smith wrote: > > > > Using the tranlator you can add an icon to a resource file. > > > > How do you do that? (Attach an icon to a program made with the > translator.) A quick (actually it took a little while to find it) search of the archives found that I asked this exact same question back in Oct 2000! The answer is however you would do it if you where programming in C for your compiler. See below for quick instructions for using LccWin (other compilers are probably similiar): ----------- 1. put this in *.rc: 500 ICON MOVEABLE PURE LOADONCALL DISCARDABLE "whatever.ico" (I use 500 here but any number will do, as long as it isn't used by another resource) 2. compile the resource-file with rc.exe (or maybe it's lrc.exe) 3. include the .res file on the commmandline when you link your program. ----------- I haven't used the LccWin compiler for a long time. I hope this helps. Ray Smith http://rays-web.com