Article View: borland.public.cppbuilder.nativeapi
Article #17494Re: Compiler error
From: Bruce Salzman
Date: Wed, 12 Mar 2003 02:34
Date: Wed, 12 Mar 2003 02:34
10 lines
1261 bytes
1261 bytes
> [C++ Error] Unit1.cpp(354): E2342 Type mismatch in parameter 'lpProc' > (wanted 'int (__stdcall *)(unsigned long,unsigned short,char *,long)', > got 'int (__stdcall *)(unsigned long,unsigned short,const char > *,long)') Apparently, the definition of PROCENUMPROC expects a char* as the third parameter, and you are trying to pass a const char*. HTH, Bruce
Technical Details
Message-ID:
<3e6e9cc8$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!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:34:34 PST From: " Bruce Salzman" <bruce@nospam.org> Newsgroups: borland.public.cppbuilder.nativeapi References: <3e6e976e$1@newsgroups.borland.com> Subject: Re: Compiler error Date: Tue, 11 Mar 2003 20:34:42 -0600 Lines: 12 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: 24.94.238.27 Message-ID: <3e6e9cc8$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1047436488 24.94.238.27 (11 Mar 2003 18:34:48 -0800) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-06!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail