🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

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

#13209
From: Martin C
Date: Sat, 25 Oct 2003 01:16
28 lines
1798 bytes
Ed,

I think I found the problem and I solved it, thanks anyway.

BR

"Martin C" <martinc@aol.com> wrote in message
news:3f99caaa@newsgroups.borland.com...
> 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
Technical Details
Message-ID: <3f99ceeb$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.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> <3f99caaa@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:39:09 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>
Subject: Re: (ATTN: Remy) Find window handle from exe file name
Date: Fri, 24 Oct 2003 17:16:24 -0800
Lines: 30
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: <3f99ceeb$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1067044587 81.10.4.238 (24 Oct 2003 18:16:27 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail