<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Icon with a console app? in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/Icon-with-a-console-app/m-p/950193#M19355</link>
    <description>Is it possible to associate an icon with a console app, to get rid of that awful default icon?</description>
    <pubDate>Thu, 03 May 2001 20:52:58 GMT</pubDate>
    <dc:creator>Intel_C_Intel</dc:creator>
    <dc:date>2001-05-03T20:52:58Z</dc:date>
    <item>
      <title>Icon with a console app?</title>
      <link>https://community.intel.com/t5/Software-Archive/Icon-with-a-console-app/m-p/950193#M19355</link>
      <description>Is it possible to associate an icon with a console app, to get rid of that awful default icon?</description>
      <pubDate>Thu, 03 May 2001 20:52:58 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Icon-with-a-console-app/m-p/950193#M19355</guid>
      <dc:creator>Intel_C_Intel</dc:creator>
      <dc:date>2001-05-03T20:52:58Z</dc:date>
    </item>
    <item>
      <title>Re: Icon with a console app?</title>
      <link>https://community.intel.com/t5/Software-Archive/Icon-with-a-console-app/m-p/950194#M19356</link>
      <description>1. Create an icon file (e.g. hello.ico) in which there should be a 32x32 pixel icon and a 16x16 one.  You can use any icon editor to do it, but I normally use the one that came with Visual Studio. &lt;BR /&gt;2. Create a resource file (e.g. hello.rc) containing only one line: &lt;BR /&gt;0 ICON hello.ico &lt;BR /&gt; &lt;BR /&gt;Now, if you are using the IDE, simply insert the hello.rc file into the project and rebuilt.  If you are using the command line, you need to: &lt;BR /&gt;3. compile the resource file by: rc -r hello.rc to create hello.res &lt;BR /&gt;4. link your files with hello.res: DF hello.f90 hello.res &lt;BR /&gt; &lt;BR /&gt;The icon will be shown in the Explorer and when the program is run outside the IDE.  When the program is executed in the IDE, the "awful default" icon will still be used. &lt;BR /&gt; &lt;BR /&gt;HTH, &lt;BR /&gt;Greg Chien &lt;BR /&gt;&lt;A href="http://protodesign-inc.com" target="_blank"&gt;http://protodesign-inc.com&lt;/A&gt;</description>
      <pubDate>Fri, 04 May 2001 01:18:20 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Icon-with-a-console-app/m-p/950194#M19356</guid>
      <dc:creator>gchien</dc:creator>
      <dc:date>2001-05-04T01:18:20Z</dc:date>
    </item>
    <item>
      <title>Re: Icon with a console app?</title>
      <link>https://community.intel.com/t5/Software-Archive/Icon-with-a-console-app/m-p/950195#M19357</link>
      <description>If you want to replace the 'awful default' icon in the console app's title bar also, you can use the &lt;A href="http://www7.compaq.com/forum?14@@.eea1ec0!SearchMark=3#3" target="_blank"&gt;method described in this past post&lt;/A&gt; with a few minor changes.  Something like this would do: &lt;BR /&gt;&lt;PRE&gt; 
    ! ... 
    integer :: hWnd, hIcon, hr  
 
    include 'resource.fd'     
 
    hWnd = 0 
    hWnd = GetForegroundWindow() 
 
    hIcon = 0;  hr = 0 
    hIcon = LoadImage(GetModuleHandle(%val(0)), %val(MAKEINTRESOURCE(IDI_ICON1)), IMAGE_ICON, &amp;amp; 
                      GetSystemMetrics(SM_CXSMICON), GetSystemMetrics(SM_CYSMICON), 0); 
    if(hIcon /= 0) then  
       hr = SendMessage(hWnd, WM_SETICON, ICON_SMALL, hIcon); 
    end if 
&lt;/PRE&gt; &lt;BR /&gt; &lt;BR /&gt;hth, &lt;BR /&gt;John</description>
      <pubDate>Fri, 04 May 2001 02:42:38 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Icon-with-a-console-app/m-p/950195#M19357</guid>
      <dc:creator>Intel_C_Intel</dc:creator>
      <dc:date>2001-05-04T02:42:38Z</dc:date>
    </item>
    <item>
      <title>Re: Icon with a console app?</title>
      <link>https://community.intel.com/t5/Software-Archive/Icon-with-a-console-app/m-p/950196#M19358</link>
      <description>Wow, fun, it worked perfectly.  Thank you!</description>
      <pubDate>Fri, 04 May 2001 02:44:27 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Icon-with-a-console-app/m-p/950196#M19358</guid>
      <dc:creator>Intel_C_Intel</dc:creator>
      <dc:date>2001-05-04T02:44:27Z</dc:date>
    </item>
  </channel>
</rss>

