How do I imbed an Icon into my EXE?
Ollie.
Using:
xHarbour Compiler build 1.2.1 (SimpLex) (Rev. 6406)
Borland C++ 5.5.1
FWH 9.04 (2009 Apr)
How do I imbed an Icon into my EXE?
Just add it to your .RC or .RES resource file.
EMG
myicon ICON myicon.ico
Please give me more detail on this...
I have all my BitMAPS, DIALOGS, ICONS stored in a DLL (CS.DLL)
I have a line in my code:
SET RESOURCES TO "CS.DLL"
And I am able to use the BITMAPS etc. in other parts of the program.
What do I need to show my icon CS.ICO in the taskbar of windows and title bar of my app. I don't know how to use .RC or .RES files.
Using FWxH, xHb 99.60 BCC5.51 iLink32.EXE XMate 1.15
DEFINE ICON oICON FILENAME "yourIcon.ico"
DEFINE WINDOW oWINDOW FROM 1,1 TO 20,70 MDI;
COLORS CLR_BLACK,CLR_WHITE;
MENU BUILDMENU() ;
ICON oICON ;
TITLE "YourTitleAplication"DEFINE ICON oICON RESOURCE "yourIcon"
DEFINE WINDOW oWINDOW FROM 1,1 TO 20,70 MDI;
COLORS CLR_BLACK,CLR_WHITE;
MENU BUILDMENU() ;
ICON oICON ;
TITLE "YourTitleAplication"PERFECT - Thanks! ![]()
Its interesting that the ICON doesn't appear next to the EXE in Windows Explorer - its the blank unknown application icon. (It appears in my application though.) Why is that?
Create a RC file and add this line:
1 ICON "your_icon.ico"
Then compile it and place it into the EXE, as samples\buildx.bat does
Then your EXE will be shown in the explorer with its icon