Just have an try....

I use the imagelib in an project witch use ShellExecute to open an web page,
In windows 2000,my appliction crash and win2000 show "Application occurs an error" while terminaled.
In 98 and XP there no problem.

When I Remove the imagelib,and change BitmapFromResource to LoadBitmap,
It's works well in windows 2000.
I think there some bug in image.lib but I can't find out it yet.....
:stupid:

Const.Ex
Posted on 2002-08-19 12:34:16 by Const.Ex
Perhaps ImageLib doesn't preserve ebx/esi/edi. Try to push them on the stack before you make the call to BitmapFromResource, and then pop them back.
Posted on 2002-08-19 12:44:04 by comrade
Thanks....
I'll reboot to win2k later to test modified demo.
;)
Posted on 2002-08-19 21:48:16 by Const.Ex