Icon not showing up
Posted: Thu Nov 24, 2005 4:19 pm
I'm haveing a problem with the icon in the title bar of my MDI window.
I'm using DLL resources and buring a RC file inthe the exe with one icon (so windows shows the exe with that icon). The icon that I'm calling is in the DLL, resname WIFTLOGO1, and in the RC file, resname 1.
In the main app I have this code
The rc files has one line that reads
My rmk script at the end has the following
Am I doing something wrong? The only icon that is displayed is that window box with the blue line on top insted of my icon. When I look at the exe through windows explorer I see the RC icon fine but when I run the app I don't.
I'm using DLL resources and buring a RC file inthe the exe with one icon (so windows shows the exe with that icon). The icon that I'm calling is in the DLL, resname WIFTLOGO1, and in the RC file, resname 1.
In the main app I have this code
Code: Select all
SET RESOURCES TO "WIFTSRN.DLL"
// Do some checking for error files (????.ERR) If any are found round
// them up and send them by email using blat.exe to programer
// It there are err files then delete all CDX files and logout any users
// Check EXE rights to run on this system (burnt HD serial and vol id to
// the end of the exe after the rc script has added the icon)
DEFINE ICON oFolderICO NAME "WIFTLOGO1
DEFINE WINDOW oMainWin;
TITLE "IFT for Windows";
MDI MENU BuildMNU1();
ICON oFolderICO
ACTIVATE WINDOW oMainWin MAXIMIZED ON INIT (Main2(cLineCmd))
lError := .F.
RETURN
Code: Select all
1 ICON .\RCS\FOLDER02.ICO
Code: Select all
BLINKER @$(LnkFile)
RC -k WIFT.RC WIFT.EXE
BURN WIFT.EXE NOVERBOSE