Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

delphi and win2k loading bitmap from resource  problem

Posted on 2000-05-09
1
Medium Priority
?
316 Views
Last Modified: 2010-04-04
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.


0
Comment
Question by:laolin
1 Comment
 
LVL 10

Accepted Solution

by:
Lischke earned 600 total points
ID: 2796129
AFAIK this is case sensitive. Try to specify the name of the bitmap all in uppercase.

Ciao, Mike
0

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
Loops Section Overview
Suggested Courses

916 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question