Thread overview | |||||||||
---|---|---|---|---|---|---|---|---|---|
|
February 26, 2011 Icons | ||||
---|---|---|---|---|
| ||||
I noticed in windows with D you can use .res (eg. dmd main.d smile.res) files for icons any way. but how do you make icon .res files? |
February 26, 2011 Re: Icons | ||||
---|---|---|---|---|
| ||||
Posted in reply to Joel Christensen | == Quote from Joel Christensen (joelcnz@gmail.com)'s article > I noticed in windows with D you can use .res (eg. dmd main.d smile.res) files for icons any way. but how do you make icon .res files? With a resource compiler. Digital Mars supplies one as part of its C++ utilities package: http://ftp.digitalmars.com/bup.zip. Documentation is here: http://www.digitalmars.com/ctg/rcc.html |
February 26, 2011 Re: Icons | ||||
---|---|---|---|---|
| ||||
Posted in reply to J Chapman | On 27-Feb-11 12:56 AM, J Chapman wrote:
> == Quote from Joel Christensen (joelcnz@gmail.com)'s article
>> I noticed in windows with D you can use .res (eg. dmd main.d smile.res)
>> files for icons any way. but how do you make icon .res files?
>
> With a resource compiler. Digital Mars supplies one as part of its C++
> utilities package: http://ftp.digitalmars.com/bup.zip.
>
> Documentation is here: http://www.digitalmars.com/ctg/rcc.html
Thanks Chapman. :-)
|
February 26, 2011 Re: Icons | ||||
---|---|---|---|---|
| ||||
Posted in reply to Joel Christensen | On 27-Feb-11 11:24 AM, Joel Christensen wrote:
> On 27-Feb-11 12:56 AM, J Chapman wrote:
>> == Quote from Joel Christensen (joelcnz@gmail.com)'s article
>>> I noticed in windows with D you can use .res (eg. dmd main.d smile.res)
>>> files for icons any way. but how do you make icon .res files?
>>
>> With a resource compiler. Digital Mars supplies one as part of its C++
>> utilities package: http://ftp.digitalmars.com/bup.zip.
>>
>> Documentation is here: http://www.digitalmars.com/ctg/rcc.html
>
Hmm. Can't seem to get it to work.
|
February 27, 2011 Re: Icons | ||||
---|---|---|---|---|
| ||||
Posted in reply to Joel Christensen | == Quote from Joel Christensen (joelcnz@gmail.com)'s article
> On 27-Feb-11 11:24 AM, Joel Christensen wrote:
> > On 27-Feb-11 12:56 AM, J Chapman wrote:
> >> == Quote from Joel Christensen (joelcnz@gmail.com)'s article
> >>> I noticed in windows with D you can use .res (eg. dmd main.d smile.res) files for icons any way. but how do you make icon .res files?
> >>
> >> With a resource compiler. Digital Mars supplies one as part of its C++ utilities package: http://ftp.digitalmars.com/bup.zip.
> >>
> >> Documentation is here: http://www.digitalmars.com/ctg/rcc.html
> >
> Hmm. Can't seem to get it to work.
In what way?
I just tried it, and it works (mostly).
Add this to your resource script (eg "icons.rc"), where "myicon.ico" is the
path to the icon:
0001 ICON "myicon.ico"
Compile with the following command:
c:\dm\bin\rcc icons.rc
Then add the resulting "icons.res" to the command line when building your app.
However, starting with Windows Vista, there's a new .ico format based on
PNG, which Digital Mars's rcc doesn't recognise. In which case you'll get
the following antiquated error:
"myicon.ico doesn't contain a valid Windows 3.0 icon resource
So if you see that error, use Microsoft's resource compiler (rc.exe) from
the Windows SDK instead.
|
Copyright © 1999-2021 by the D Language Foundation