🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: EnumResourceNames

#7130
From: Kent
Date: Mon, 14 Mar 2005 22:23
25 lines
2020 bytes
If you defined "iTotalIcons" in the public or private section of the
header, you may need "Form1->iTotalIcons++;".

You may need to include a cast in your call to EnumResourceNames:
EnumResourceNames(hResourceDLL,
                         "RT_ICON",
                         (ENUMRESNAMEPROC)EnumResProc,
                         NULL
                          );

You didn't say if you declared EnumResProc in your header.  If you
did, make sure it's not in a public or private section or flip the
order of your functions in the source file:  move EnumResProc above
Button2Click.

Kent





"jB" <.> wrote in message news:4235f905@newsgroups.borland.com...
> Could someone please advise me why my callback function will not
compile.
>
Technical Details
Message-ID: <TcSdndDyf61-k6vfRVn-hg@accessus.net>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.accessus.net!news.accessus.net.POSTED!not-for-mail
References: <4235f905@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
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.accessus.net!news.accessus.net.POSTED!not-for-mail
NNTP-Posting-Date: Mon, 14 Mar 2005 16:23:31 -0600
From: "Kent" <kentav@accessus.net>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <4235f905@newsgroups.borland.com>
Subject: Re: EnumResourceNames
Date: Mon, 14 Mar 2005 16:23:37 -0600
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
Message-ID: <TcSdndDyf61-k6vfRVn-hg@accessus.net>
Lines: 27
NNTP-Posting-Host: 207.206.177.17
X-Trace: sv3-ihGfRgKpLnRgOHq2KeWEz4KhXqkxQWNZe82rFs1h8xMvFJbZmeN0TFm5ydHza2UDI5rVmh9DkifiB0+!reMxH7V4AgqN1qOErKNTjwQx0hK8ZavmJlWvrJUKQoazLtiSGogcteK+tb5vVn2Qzq14Fx5hlPNn!f+8=
X-Complaints-To: abuse@accessus.net
X-DMCA-Complaints-To: abuse@accessus.net
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.32