Repost: Resource Files
- From: "Ryan Styles" <causesdrowsiness@xxxxxxxxx>
- Date: 19 Nov 2005 05:57:27 -0800
Resposting because I think it got lost. I never saw it show up on my
news server.
---------------------------------------------------------------------------------------------------
Hey all.
Well, I am trying to load an image (bitmap) from a resource file into a
TImage component, but I am having trouble. When I run the app from
Delphi, it gives me a "Could not find resource 1000" error for some
reason. The resource file *is* compiled into my project and the file
itself was built without issues.
Here is the code I am using to try to load the file into the TImage:
{ Code }
Image1.Picture.Bitmap.LoadFromResourceName(0, '1000');
{ End Code}
1000 is the name I gave the resource. Even when I try calling the file
using the actual file name, I get the same exact error.
What in the world am I doing wrong here? It's baffled me and all of the
searches I have done have lead me to the exact same code I am already
using... so it's got to be something fundamentally simply, yet elusive.
Any help you can give would be great!
Many thanks in advance.
-- Ryan
.
- Follow-Ups:
- Re: Repost: Resource Files
- From: Charles Appel
- Re: Repost: Resource Files
- Prev by Date: Re: Where is a modern pascal code incubator ?
- Next by Date: Re: Repost: Resource Files
- Previous by thread: Resource Files
- Next by thread: Re: Repost: Resource Files
- Index(es):
Relevant Pages
|