you can use LoadImage instead of LoadIcon and you have to specify LR_LOADFROMFILE as a flag. Something like that:
HANDLE hIcon = LoadImage(NULL, "c:\\temp\\myicon.ico", IMAGE_ICON, 0, 0, LR_LOADFROMFILE);
This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes. I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.
Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers). Error trapping with try..catch to help the code run even if something goes wrong.
Continuing from the seve…