Re: Resource RT_RCDATA (simple question)



"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]



.



Relevant Pages

  • Re: Resource RT_RCDATA (simple question)
    ... >> string name try surrounding the identifier with quotes. ... This is because what you are clicking on is the Resource Type. ... identifier is to reimport your data type and give it the new name. ...
    (microsoft.public.vc.mfc)
  • [API] Win32 Resources - List Icon Resource Names
    ... private static extern IntPtr LoadLibraryEx(string FileName, ... /// Gets the string resource names for the current file. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: UpdateResource being weird
    ... > That's funny, I was working on updateresource just yesterday, only i was ... > for String Types. ... >> inspection using a resource viewer shows that the MSI file is being ... but the INI file is messing me arround. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: How to add button on Mail editor which is not outlook.??
    ... 'The bmp files are added to a resource file. ... Private Declare Function GdiplusShutdown Lib "GDIPlus" (_ ... ByVal filename As String) As StdPicture ... Dim tSI As GdiplusStartupInput ...
    (microsoft.public.office.developer.outlook.vba)
  • Re: Other version information
    ... header to locate the resource table. ... Windows PE files ... marked by a literal string. ... files in a folder, ...
    (microsoft.public.scripting.vbscript)