🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Callback function as method class

#9468
From: Sam
Date: Fri, 09 Jul 2004 06:30
10 lines
1252 bytes
I need to drop this callback function as a method of a custom C++ class:
LRESULT CALLBACK NewWindowProc(HWND hWnd, UINT msg, WPARAM w, LPARAM l)
    {
        ...
        return CallWindowProc(OldProc, hWnd, msg, w, l);
    }
The compiler refused. It seems that a class can't has a callback as method,
that is right ?

Sam
Technical Details
Message-ID: <40ee3b69@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!news.tele.dk!news.tele.dk!small.news.tele.dk!lnewsoutpeer00.lnd.ops.eu.uu.net!lnewsinpeer01.lnd.ops.eu.uu.net!emea.uu.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,68c63a4b5ad1dd83,start
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
Reply-To: "Sam" <skneife3@wanadoo.fr>
From: "Sam" <skneife3@wanadoo.fr>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Callback function as method class
Date: Fri, 9 Jul 2004 08:30:11 +0200
Lines: 12
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: 80.13.245.243
Message-ID: <40ee3b69@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1089354601 80.13.245.243 (8 Jul 2004 23:30:01 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!news.tele.dk!news.tele.dk!small.news.tele.dk!lnewsoutpeer00.lnd.ops.eu.uu.net!lnewsinpeer01.lnd.ops.eu.uu.net!emea.uu.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail