Link to home
Start Free TrialLog in
Avatar of laolin
laolin

asked on

delphi and win2k loading bitmap from resource problem

I am trying to load BitMap from a resource dll with next Delphi5 code:


          Bitmap := TBitmap.Create;
          Bitmap.LoadFromResourceName(dllhandle, 'Bitmap1');

But I am getting message on win2k:
"Resource BITMAP1 not found."
it works properly on win98.
i compile the exe and dll under win98,
they does not work on win2k too.
What have I done wrong?
i have traced into LoadFromResourceName,
the error occurs when it call win api
findresource.


ASKER CERTIFIED SOLUTION
Avatar of Lischke
Lischke

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial