Article View: borland.public.cppbuilder.nativeapi
Article #17082Re: Another Issue about ShellExecute
From: Ed Mulroy [TeamB]
Date: Tue, 08 Apr 2003 18:35
Date: Tue, 08 Apr 2003 18:35
31 lines
2552 bytes
2552 bytes
> But i got this error message: > [C++ Error] Unit1.cpp(64): E2034 Cannot convert > 'int (__stdcall *)(void *,long)' to > 'int (__stdcall *)()' > [C++ Error] Unit1.cpp(64): > E2342 Type mismatch in parameter 'lpEnumFunc' > (wanted 'int (__stdcall *)()', got 'int (__stdcall *)(void *,long)') > on EnumWindows(MyEnumProc, (LPARAM) pi.dwProcessId); Around 1992 Microsoft added the define STRICT for use with Windows header files to differentiate between code from their compilers which supported function prototypes and later ones. The Windows header files expand differently if it is defined, mainly by showing the argument list in callback function arguments. Try defining STRICT. > And how i'll put this code in my project instead of a > Console Wizard. The code can be put into your project. It is just not VCL code so you'd need to either insert the WinMain code into the WinMain the compiler wrote or rename the function and have the WinMain function call it. I'd prefer to have the compiler-written WinMain call so that I'm altering code generated by the compiler's funky ways of doing things. I don't understand what the console wizard problem is. It is the only way provided to create a console or GUI project written only with C or C++. . Ed > Jo�o Pereira wrote in message > news:3e930d9c@newsgroups.borland.com...
Technical Details
Message-ID:
<3e93168b$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:
<3e8c0ea4@newsgroups.borland.com> <3e918b4d@newsgroups.borland.com> <3e91b8e8$1@newsgroups.borland.com> <3e91be11$1@newsgroups.borland.com> <3e91c5c6$1@newsgroups.borland.com> <3e92ee2f@newsgroups.borland.com> <3e93038d@newsgroups.borland.com> <3e930d9c@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: 10cc67,bff1fa0e8e8777f2 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-04-08 11:44:08 PST From: "Ed Mulroy [TeamB]" <ed@mulroyREMOVETHESECHARS.org> Newsgroups: borland.public.cppbuilder.nativeapi References: <3e8c0ea4@newsgroups.borland.com> <3e918b4d@newsgroups.borland.com> <3e91b8e8$1@newsgroups.borland.com> <3e91be11$1@newsgroups.borland.com> <3e91c5c6$1@newsgroups.borland.com> <3e92ee2f@newsgroups.borland.com> <3e93038d@newsgroups.borland.com> <3e930d9c@newsgroups.borland.com> Subject: Re: Another Issue about ShellExecute Date: Tue, 8 Apr 2003 14:35:37 -0400 Lines: 33 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.74.175.102 Message-ID: <3e93168b$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1049826955 24.74.175.102 (8 Apr 2003 11:35:55 -0800) X-Authenticated-User: edmulroy 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