🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #13205

Re: (ATTN: Remy) Find window handle from exe file name

#13205
From: Martin C
Date: Sat, 25 Oct 2003 00:58
40 lines
2187 bytes
Hi Ed,

I am trying to compile the source code in the attachment although I receive
couple of errors, so if you please can tell me why I am getting these two
error and how to solve them

[C++ Error] Unit2.cpp(100): E2034 Cannot convert 'int (__stdcall *)(void
*,long)' to 'int (__stdcall *)()'
[C++ Error] Unit2.cpp(100): E2342 Type mismatch in parameter 'lpEnumFunc'
(wanted 'int (__stdcall *)()', got 'int (__stdcall *)(void *,long)')

And the compiler is pointing to the following line:

EnumWindows(EWProc, reinterpret_cast<LPARAM>(&pih));


I appreciate your help and support

BR

"Martin C" <martinc@aol.com> wrote in message
news:3f931b5b@newsgroups.borland.com...
> Hi Ed,
>
> Thanks so much for your reply, I've found the attachment and downloaded
it.
>
> BR.
>
> "Ed Mulroy [TeamB]" <dont_email_me@bitbuc.ket> wrote in message
> news:3f930eb2$1@newsgroups.borland.com...
> > Look in the borland.public.attachments group for either of the messages
> from
> > me with the subject Window From File.  They were posted on Oct 3 and
have
> an
> > attached zip file with code including a demo.  Let me know if you can or
> > cannot find them.
>
>
Technical Details
Message-ID: <3f99caaa@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <3f930de8@newsgroups.borland.com> <3f930eb2$1@newsgroups.borland.com> <3f931b5b@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 18:09:03 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>
Subject: Re: (ATTN: Remy) Find window handle from exe file name
Date: Fri, 24 Oct 2003 16:58:18 -0800
Lines: 42
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: <3f99caaa@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1067043498 81.10.4.238 (24 Oct 2003 17:58:18 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail