www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - exe-Icon

reply Nrgyzer <nrgyzer gmail.com> writes:
Hi guys,

the most applications using there own icons for the exe-file. I'm
currently using external tools to set my own icon for the exe, but is
there any chance to automatically set the icon using the dmd compiler?
Aug 01 2011
parent reply Jimmy Cao <jcao219 gmail.com> writes:
--0015174780ae3c394704a9748211
Content-Type: text/plain; charset=ISO-8859-1

Yes, add it as an ICON resource.
In a .rc file:

100 ICON "icon.ico"

Then compile the resource file with your favorite resource compiler.
Then pass the .res file as an argument to dmd.

On Mon, Aug 1, 2011 at 10:27 AM, Nrgyzer <nrgyzer gmail.com> wrote:

 Hi guys,

 the most applications using there own icons for the exe-file. I'm
 currently using external tools to set my own icon for the exe, but is
 there any chance to automatically set the icon using the dmd compiler?

--0015174780ae3c394704a9748211 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Yes, add it as an ICON resource.<div>In a .rc file:<br><blockquote class=3D= "webkit-indent-blockquote" style=3D"margin: 0 0 0 40px; border: none; paddi= ng: 0px;"><div><span class=3D"Apple-style-span" style=3D"font-family: Monac= o, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Luc= ida Console&#39;, monospace; font-size: 12px; white-space: pre; background-= color: rgb(255, 255, 255); ">100 ICON &quot;icon.ico&quot;</span></div> </blockquote><div><div>Then compile the resource file with your favorite re= source compiler.</div><div>Then pass the .res file as an argument to dmd.</= div><div><br><div class=3D"gmail_quote">On Mon, Aug 1, 2011 at 10:27 AM, Nr= gyzer <span dir=3D"ltr">&lt;<a href=3D"mailto:nrgyzer gmail.com">nrgyzer gm= ail.com</a>&gt;</span> wrote:<br> <blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p= x #ccc solid;padding-left:1ex;">Hi guys,<br> <br> the most applications using there own icons for the exe-file. I&#39;m<br> currently using external tools to set my own icon for the exe, but is<br> there any chance to automatically set the icon using the dmd compiler?<br> </blockquote></div><br></div></div></div> --0015174780ae3c394704a9748211--
Aug 01 2011
parent Nrgyzer <nrgyzer gmail.com> writes:
== Auszug aus Jimmy Cao (jcao219 gmail.com)'s Artikel
 --0015174780ae3c394704a9748211
 Content-Type: text/plain; charset=ISO-8859-1
 Yes, add it as an ICON resource.
 In a .rc file:
 100 ICON "icon.ico"
 Then compile the resource file with your favorite resource compiler.
 Then pass the .res file as an argument to dmd.
 On Mon, Aug 1, 2011 at 10:27 AM, Nrgyzer <nrgyzer gmail.com> wrote:
 Hi guys,

 the most applications using there own icons for the exe-file. I'm
 currently using external tools to set my own icon for the exe,


 there any chance to automatically set the icon using the dmd



Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Yes, add it as an ICON resource.<div>In a .rc file:<br><blockquote

 "webkit-indent-blockquote" style=3D"margin: 0 0 0 40px; border:

 ng: 0px;"><div><span class=3D"Apple-style-span" style=3D"font-

 o, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;,

 ida Console&#39;, monospace; font-size: 12px; white-space: pre;

 color: rgb(255, 255, 255); ">100 ICON &quot;icon.ico&quot;</span></

 </blockquote><div><div>Then compile the resource file with your

 source compiler.</div><div>Then pass the .res file as an argument

 div><div><br><div class=3D"gmail_quote">On Mon, Aug 1, 2011 at

 gyzer <span dir=3D"ltr">&lt;<a

 ail.com</a>&gt;</span> wrote:<br>
 <blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-

 x #ccc solid;padding-left:1ex;">Hi guys,<br>
 <br>
 the most applications using there own icons for the exe-file.

 currently using external tools to set my own icon for the exe, but

 there any chance to automatically set the icon using the dmd

 </blockquote></div><br></div></div></div>
 --0015174780ae3c394704a9748211--

Works - thanks :)
Aug 01 2011