How to Include bitmaps/icons in an EXE?

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

User avatar
karweru
Posts: 220
Joined: Fri Aug 01, 2008 1:51 pm
DBs Used: DBF,mysql,mariadb,postgresql,sqlite,odbc
Contact:

Re: How to Include bitmaps/icons in an EXE?

Post by karweru »

Fanatastic Rathi, It works! Thank you very much for your patience and guidance.
Kind regards,
Gilbert.
User avatar
Pablo César
Posts: 4059
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil

How to Include bitmaps/icons in an EXE?

Post by Pablo César »

Czarny_Pijar wrote:Looks like the easiest way to accomplish this task is to substitute the file c:\hmg35\RESOURCES\window.ico to another one of your choice.
Fantastic is to know how users met the alternative way... but this is a radical practice. By other way, I prefer to include in "main demo resource file", as follows:

Code: Select all

ZZZ_AAAWINDOW 		ICON DEMO.ICO
"ZZZ_AAAWINDOW" it´s a alias name of Window.ico in RESOURCE folder for default HMG applications when are .EXE be created.

But please note that you should not edit "main demo resource file" (.RC file) by Text Editor during project (.HBP file) open and running at IDE. Because IDE will overwirte and restore the previous content of .RC file. Quit IDE and then edit .RC file thru your editor.
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
Post Reply