🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Bizzaar problem when calling EnumWindows API function.

#3389
From: Bob Gonder
Date: Sun, 18 Jun 2006 19:47
30 lines
1625 bytes
David wrote:

>I tried this but still no go.

Look in WINUSER.H

#ifdef STRICT

typedef BOOL (CALLBACK* WNDENUMPROC)(HWND, LPARAM);

#else /* !STRICT */

typedef FARPROC WNDENUMPROC;

#endif


WINUSERAPI
BOOL
WINAPI
EnumWindows(
    IN WNDENUMPROC lpEnumFunc,
    IN LPARAM lParam);

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

Definately a STRICT problem.
Technical Details
Message-ID: <15bb92101vefo3nokueudlrfa0qq6o84vk@4ax.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news3.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <44954617$1@newsgroups.borland.com> <449552e8$1@newsgroups.borland.com> <44956252$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,4e294185b67adeb4
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: Bob Gonder <notbg@notmindspring.invalid>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: Bizzaar problem when calling EnumWindows API function.
Date: Sun, 18 Jun 2006 12:47:25 -0700
Organization: MindSpring Enterprises, Inc.
Reply-To: notbg@notmindspring.invalid
Message-ID: <15bb92101vefo3nokueudlrfa0qq6o84vk@4ax.com>
References: <44954617$1@newsgroups.borland.com> <449552e8$1@newsgroups.borland.com> <44956252$1@newsgroups.borland.com>
X-Newsreader: Forte Agent 1.93/32.576 English (American)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 67.77.144.198
X-Trace: newsgroups.borland.com 1150660043 67.77.144.198 (18 Jun 2006 12:47:23 -0700)
Lines: 32
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news3.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail