Article View: borland.public.cppbuilder.nativeapi
Article #7035Re: EnumResourceNames
From: Remy Lebeau (TeamB)
Date: Tue, 15 Mar 2005 06:15
Date: Tue, 15 Mar 2005 06:15
13 lines
1377 bytes
1377 bytes
"jB" <.> wrote in message news:42367c11$1@newsgroups.borland.com...
> [C++ Error] Unit1.cpp(37): E2034 Cannot convert 'int (__stdcall *)
> (void *,char *,char *,long)' to 'int (__stdcall *)()'
You need to cast your function when passing it to EnumResourceNames(), ie:
EnumResourceNames(hResourceDLL, RT_ICON, (ENUMRESNAMEPROC) EnumResProc,
NULL);
Gambit
Technical Details
Message-ID:
<42367d6a$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!feeder2.on.meganewsservers.com!meganewsservers.com!textfeed1.on.meganewsservers.com!38.119.100.83.MISMATCH!news-out.nntp.be!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<4235f905@newsgroups.borland.com> <42367c11$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: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <4235f905@newsgroups.borland.com> <42367c11$1@newsgroups.borland.com> Subject: Re: EnumResourceNames Date: Mon, 14 Mar 2005 22:15:49 -0800 Lines: 15 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 68.69.17.41 Message-ID: <42367d6a$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1110867306 68.69.17.41 (14 Mar 2005 22:15:06 -0800) Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!feeder2.on.meganewsservers.com!meganewsservers.com!textfeed1.on.meganewsservers.com!38.119.100.83.MISMATCH!news-out.nntp.be!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail