Article View: borland.public.cppbuilder.nativeapi
Article #13212Re: (ATTN: Remy) Find window handle from exe file name
From: Martin C
Date: Sat, 25 Oct 2003 01:43
Date: Sat, 25 Oct 2003 01:43
23 lines
1756 bytes
1756 bytes
Thanks remy, I already added WNDENUMPROC to the first parameter and it worked... Once again thanks and BR... "Remy Lebeau (TeamB)" <gambit47.no.spam@no.spam.yahoo.com> wrote in message news:3f99d356$1@newsgroups.borland.com... > > "Martin C" <martinc@aol.com> wrote in message > news:3f99caaa@newsgroups.borland.com... > > > [C++ Error] Unit2.cpp(100): E2034 Cannot convert 'int (__stdcall *)(void > > *,long)' to 'int (__stdcall *)()' > > You need to cast the first parameter to WNDENUMPROC. Even though your > callback function is the correct signature, for whatever reason Microsoft > made EnumWindows() expect the WNDENUMPROC signature instead. > > > Gambit > >
Technical Details
Message-ID:
<3f99d53b@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.tpinternet.pl!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<3f930de8@newsgroups.borland.com> <3f930eb2$1@newsgroups.borland.com> <3f931b5b@newsgroups.borland.com> <3f99caaa@newsgroups.borland.com> <3f99d356$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,dcd8305ed53c9568 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-10-24 19:09:12 PST From: "Martin C" <martinc@aol.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <3f930de8@newsgroups.borland.com> <3f930eb2$1@newsgroups.borland.com> <3f931b5b@newsgroups.borland.com> <3f99caaa@newsgroups.borland.com> <3f99d356$1@newsgroups.borland.com> Subject: Re: (ATTN: Remy) Find window handle from exe file name Date: Fri, 24 Oct 2003 17:43:23 -0800 Lines: 25 Organization: V Safe X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 NNTP-Posting-Host: 81.10.4.238 Message-ID: <3f99d53b@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1067046203 81.10.4.238 (24 Oct 2003 18:43:23 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.tpinternet.pl!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail