This one has got me buggered...
Ive got an .rc file - test.rc, with this:
And my program:
That compiles fine and looking at my exe in Explorer I can clearly see that the icon is successfully assigned to it. But when I run the program, the icon is the standard Windows icon !?!?! It doesnt make any sense to me, does anybody know whats going on here?
------------------
Ive got an .rc file - test.rc, with this:
Code:
#include "resource.h" PROGRAMICON ICON MYICON.ICO
Code:
#COMPILE EXE #RESOURCE "myicon.pbr" #INCLUDE "win32api.inc" GLOBAL Form1 AS LONG FUNCTION WINMAIN (BYVAL hCurInstance AS LONG, _ BYVAL hPrevInstance AS LONG, _ lpCmdLine AS ASCIIZ, _ BYVAL nCmdShow AS LONG) AS LONG DIALOG NEW 0, "Icon Test", 50, 50, 195, 87, %DS_CENTER + %DS_SETFOREGROUND + %WS_MINIMIZEBOX + %WS_SYSMENU + %WS_CAPTION TO Form1 DIALOG SHOW MODAL Form1 END FUNCTION
------------------
Comment