|
From: Napoleon A. <n_a...@ya...> - 2003-02-25 16:02:23
|
Hi,
I have this program which compiles without errors but when I try to run
it displays the error message "Icon load Image failed" according to
this method :
void Icon::Load (HINSTANCE res, int id, int dx, int dy, unsigned flag)
{
_h = reinterpret_cast<HICON> (::LoadImage (
res,
MAKEINTRESOURCE (id),
IMAGE_ICON,
dx, dy,
flag));
if (_h == 0)
throw "Icon load image failed";
}
The icon image is in the directory. Another program with the same
method compiles and runs.
Thanx
Napoleon
__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/
|