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.LoadFromResourceNam e(dllhandl e, '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.
Bitmap := TBitmap.Create;
Bitmap.LoadFromResourceNam
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.