Article View: borland.public.cppbuilder.nativeapi
Article #17496Re: Compiler error
From: Holy Punk
Date: Tue, 11 Mar 2003 23:34
Date: Tue, 11 Mar 2003 23:34
20 lines
1434 bytes
1434 bytes
"Terry" <terry@helloworld.com> wrote in message
news:3e6e976e$1@newsgroups.borland.com...
> I have been staring at this and i just cannot figure out what
> is causing the error.
> BOOL WINAPI EnumProcs(PROCENUMPROC lpProc, LPARAM lParam)
> {
> //code
> }
>
> BOOL CALLBACK ProcessEnumProc(DWORD dw, WORD w16, LPCSTR lpstr, LPARAM
> lParam)
> {
> // code
> }
Change LPCSTR to LPSTR. By the way, it's always better to use "char*" or
"const char*" explicitly, then such problem wouldn't appear ;).
Best regards,
Holy Punk.
Technical Details
Message-ID:
<3e6e9cbe$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mailReferences:
<3e6e976e$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,804592ee0e8d4a4e X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-03-12 18:59:40 PST From: "Holy Punk" <Holy_Punk@hotmail.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <3e6e976e$1@newsgroups.borland.com> Subject: Re: Compiler error Date: Tue, 11 Mar 2003 18:34:54 -0500 Lines: 23 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 NNTP-Posting-Host: 142.58.249.209 Message-ID: <3e6e9cbe$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1047436478 142.58.249.209 (11 Mar 2003 18:34:38 -0800) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail