Solved

delphi and win2k loading bitmap from resource  problem

Posted on 2000-05-09
1
305 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 200 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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

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…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

705 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now