Article View: borland.public.cppbuilder.nativeapi
Article #2401Re: Using EnumWindows in C++Builder
From: Remy Lebeau (TeamB)
Date: Wed, 28 Feb 2007 17:27
Date: Wed, 28 Feb 2007 17:27
19 lines
1365 bytes
1365 bytes
"Dan" <Dan@do.not.spam> wrote in message
news:45e5b922$1@newsgroups.borland.com...
> Hi, I am trying to use the EnumWindows function in a VCL
application,
> however, I am getting an error:
>
> "[C++ Error] Main.cpp(106): E2034 Cannot convert 'int (__stdcall
*)(void
> *,long)' to 'int (__stdcall *)()'"
You need to type-cast the function pointer that you are passing in,
ie:
EnumWindows((WNDENUMPROC )EnumWindowsProc, NULL);
Gambit
Technical Details
Message-ID:
<45e5bbc3$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<45e5b922$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,3d6d0bffd82e483c X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <45e5b922$1@newsgroups.borland.com> Subject: Re: Using EnumWindows in C++Builder Date: Wed, 28 Feb 2007 09:27:50 -0800 Lines: 21 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 75.83.34.171 Message-ID: <45e5bbc3$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1172683715 75.83.34.171 (28 Feb 2007 09:28:35 -0800) Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail