🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

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

#13208
From: Remy Lebeau (TeamB)
Date: Sat, 25 Oct 2003 01:37
13 lines
1438 bytes
"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: <3f99d356$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: "Remy Lebeau \(TeamB\)" <gambit47.no.spam@no.spam.yahoo.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 18:37:56 -0700
Lines: 15
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: 67.22.137.75
Message-ID: <3f99d356$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1067045718 67.22.137.75 (24 Oct 2003 18:35:18 -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