Re: Resource RT_RCDATA (simple question)
- From: "Jeff Partch [MVP]" <jeffp@xxxxxxxx>
- Date: Sat, 2 Apr 2005 08:11:40 -0600
"Hanna-Barbera" <NULL@xxxxxxxxxx> wrote in message
news:utuY713NFHA.3076@xxxxxxxxxxxxxxxxxxxxxxx
> Hi,
>
> I have a "application defined resource data" as MSDN puts it.
> I import it into the resource (no problems there).
> It gives a identifier IDR_DATA1, then IDR_DATA2 for the next one and so
on.
>
> How can I change the identifier to another name? I can change it for other
> resource types.
Not sure what you've tried, but I can rename from Properties. To get a
string name try surrounding the identifier with quotes.
>
> Also, are resources identified with a string or a integer?
Either, except I think STRINGTABLE entries.
> Functions like
> FindResource and FindResourceEx want a string. I am aware of
> MAKEINTRESOURCE, but is it possible to pass the string to FindResource
> directly?
Yes.
> How can I do that?
Just pass a string, and don't use MAKEINTRESOURCE.
> How can I know the string name of my resource?
It'll show in the Resource View, but really if you give it a name, you
should know it already.
> Is it "IDR_DATA1" and so on?
It should be the name you and/or the wizard gives to it. So if you give it
the name: "IDR_DATA1" then that's the string name. On the other hand, if you
give it the numeric identifier: IDR_DATA1, then it's string name is
MAKEINTRESOURCE(IDR_DATA1).
--
Jeff Partch [VC++ MVP]
.
- Follow-Ups:
- Re: Resource RT_RCDATA (simple question)
- From: Hanna-Barbera
- Re: Resource RT_RCDATA (simple question)
- References:
- Resource RT_RCDATA (simple question)
- From: Hanna-Barbera
- Resource RT_RCDATA (simple question)
- Prev by Date: Re: MDI and multithhreading
- Next by Date: Re: MDI and multithhreading
- Previous by thread: Resource RT_RCDATA (simple question)
- Next by thread: Re: Resource RT_RCDATA (simple question)
- Index(es):
Relevant Pages
|