🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #8005

Re: Get Number of Icons

#8005
From: Bob Gonder
Date: Mon, 06 Dec 2004 16:59
30 lines
1719 bytes
jB wrote:

>"Bob Gonder"  wrote in message > Check out 
>EnumResourceTypes()
>>
>Thanks, but not exactly sure what to do?
>
>jB

Right, wrong function.
Try this one:

	EnumResourceNames( dllHandle, "RC_ICON", YourEnumResProc, 0 );
 

BOOL CALLBACK YourEnumResProc(  HANDLE hModule,   LPTSTR lpszType,
			    LPTSTR lpszName,   LONG lParam )
{
	if( 0 == strcmp( lpszType, "RC_ICON" ) ||
	     0 == strcmp( lpszType,"RT_GROUP_ICON" ) )
	{
	do with it as you please
	Save it in a string vector for later, or
		FindResource/LoadResource it now.
	}
	return TRUE;
}
 

 
Technical Details
Message-ID: <3139r0ll9okkco00amd6j5rn9otgcl46le@4ax.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!news.wiretrip.org!border2.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <41b2c2da@newsgroups.borland.com> <dac6r0tkn3mfa5i7qm88ejiqb6ia0qb1un@4ax.com> <41b387ce@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,79b175134bb5ec3f
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: Bob Gonder <notbg@notmindspring.invalid>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: Get Number of Icons
Date: Mon, 06 Dec 2004 08:59:40 -0800
Organization: MindSpring Enterprises, Inc.
Reply-To: notbg@notmindspring.invalid
Message-ID: <3139r0ll9okkco00amd6j5rn9otgcl46le@4ax.com>
References: <41b2c2da@newsgroups.borland.com> <dac6r0tkn3mfa5i7qm88ejiqb6ia0qb1un@4ax.com> <41b387ce@newsgroups.borland.com>
X-Newsreader: Forte Agent 1.93/32.576 English (American)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 67.77.38.205
X-Trace: newsgroups.borland.com 1102352379 67.77.38.205 (6 Dec 2004 08:59:39 -0800)
Lines: 32
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!news.wiretrip.org!border2.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail