Icons for Console Applications

Last reviewed: May 19, 1997
Article ID: Q91150
3.10 3.50 3.51 4.00 | 4.00
WINDOWS NT          | WINDOWS
kbprg

The information in this article applies to:

  • Microsoft Win32 Application Programming Interface (API) included with:

        - Microsoft Windows NT versions 3.1, 3.5, 3.51, 4.0
        - Microsoft Windows 95 version 4.0
    

SUMMARY

Under OS/2, when you add a console application named, for example CONAPP.EXE, to a program group, the system uses the file CONAPP.ICO (if it exists ) as the icon. This does not happen automatically under Windows NT and Windows 95; the item will have a generic icon.

To specify the icon that appears in the program group, use the following steps as an example:

  1. Create a resource file containing an ICON statement:

          ConApp ICON ConApp.ICO
    

  2. Compile the resource using RC:

          rc -r $(rcvars) -fo conapp.res conapp.rc
    

  3. Add the .rc file to the link command line

MORE INFORMATION

If the application is started by clicking its icon in Program Manager, the icon that appears when the application is minimized will be that icon, whether it is a generic icon or an icon imbedded in the executable file.

If the application is started from the MS-DOS prompt or the File menu, then the icon that appears when the application is minimized will be the icon that is used for the MS-DOS prompt.


KBCategory: kbprg
KBSubcategory: BseCon
Additional reference words: 3.10 3.50 3.51 4.00
Keywords : BseCon kbprg
Version : 3.10 3.50 3.51 4.00 | 4.00
Platform : NT WINDOWS


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: May 19, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.