News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

?- Specific icon on compile

Started by Haste, October 20, 2006, 01:02:30 AM

Previous topic - Next topic

Haste

I am hoping that someone could direct me with information to compiling masm source to an executable and having a different icon.. Other than the standard one. For example, if I wanted one of my programs to have custom icon I made without the use of external programs.

trodon

hi Haste, welcome on board  :U
to insert some icon, first you must to define icon in rsrc.rc file

EDIT:
for example:
500 ICON MOVEABLE PURE LOADONCALL DISCARDABLE "file.ico"

Best regards  :U

hutch--

Hi haste,

Welcome on board. trodon has pointed you in the right direction.

1. Create an icon.

2. Add it into a RC script as trodon showed you.

3. Compile it with RC.EXE into a RES file.

4. Link it into your executable.

5. Use LoadIcon() or similar to access the icon to get its handle.

6. Display the icon by a variety of diferent API calls.
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php

P1

Haste,

Welcome Aboard    :U   

The forum 'Search' and your favorite search engine will answer many questions before we can and save you time.   :dance:

For what it is worth department:

Explorer ( in file view ) will use icon designation 1 as a programs default icon, after that, the first available icon.

1 ICON MOVEABLE PURE LOADONCALL DISCARDABLE "Main.ICO"

Regards,  P1  :8)

Haste

 :bg Thankyou trodon so very much!! Especially for such a quick response.