Article View: borland.public.cppbuilder.nativeapi
Article #7044Re: EnumResourceNames
From: jB
Date: Tue, 15 Mar 2005 17:45
Date: Tue, 15 Mar 2005 17:45
39 lines
1937 bytes
1937 bytes
Dear Remy,
You are a hard task master ;-)
If I knew how to differentiate between an icon or a group I would ...
As to the LoadIcon code (voila)
void __fastcall TForm1::Button3Click(TObject *Sender)
{
try
{
try
{
hResourceDLL = LoadLibrary(Edit1->Text.c_str());
if(hResourceDLL)
{
Image1->Invalidate();
Image1->Picture->Icon->Handle =
LoadIcon(hResourceDLL,MAKEINTRESOURCE(IconNumber));
}
}
catch(...)
{
MessageDlg("Cannot Load Library", mtError,
TMsgDlgButtons() << mbOK, 0);
}
}
__finally
{
FreeLibrary (hResourceDLL);
}
}
jB
Technical Details
Message-ID:
<42371f2f@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!npeer.de.kpn-eurorings.net!feed.news.schlund.de!schlund.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<4235f905@newsgroups.borland.com> <42367c11$1@newsgroups.borland.com> <42367d6a$1@newsgroups.borland.com> <4237168b$1@newsgroups.borland.com> <42371d44$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,da3abd9f4e77eb05 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "jB" <.> Newsgroups: borland.public.cppbuilder.nativeapi References: <4235f905@newsgroups.borland.com> <42367c11$1@newsgroups.borland.com> <42367d6a$1@newsgroups.borland.com> <4237168b$1@newsgroups.borland.com> <42371d44$1@newsgroups.borland.com> Subject: Re: EnumResourceNames Date: Tue, 15 Mar 2005 18:45:21 +0100 Lines: 41 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2527 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527 X-RFC2646: Format=Flowed; Original NNTP-Posting-Host: 212.254.101.39 Message-ID: <42371f2f@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1110908719 212.254.101.39 (15 Mar 2005 09:45:19 -0800) Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!npeer.de.kpn-eurorings.net!feed.news.schlund.de!schlund.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail