Article View: comp.windows.ms.programmer
Article #2767C++ vs. Windows
From: Ron Burk
Date: Sun, 19 May 1991 21:15
Date: Sun, 19 May 1991 21:15
14 lines
1271 bytes
1271 bytes
Turbo Pascal for Windows (TPW), in addition to C++-style virtual methods, supplies "dynamic" methods. These seem to be an attempt to deal with cases where you inherit a large number of virtual functions but generally only override a few. Rather than giving you yet another copy of that large virtual function table, dynamic methods do a search through a list at runtime to find the right method. If you only overrode a few functions, the list should be much smaller than the virtual function table. I am lying about some of this, but I believe the gist is correct. My question is for folks who use any of the various C++ class libraries for windows. How do they deal with the large number of window messages? Do they bite the bullet and define each message as a virtual function? To they decide on a subset of messages that they deem important enough to be virtual functions?
Technical Details
Message-ID:
<e9P821w163w@burklabs>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!zaphod.mps.ohio-state.edu!van-bc!ubc-cs!uw-beaver!milton!sumax!polari!rwing!seaeast!burklabs!ronbShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!zaphod.mps.ohio-state.edu!van-bc!ubc-cs!uw-beaver!milton!sumax!polari!rwing!seaeast!burklabs!ronb From: ronb@burklabs (Ron Burk ) Newsgroups: comp.windows.ms.programmer Subject: C++ vs. Windows Message-ID: <e9P821w163w@burklabs> Date: 19 May 91 21:15:25 GMT Organization: Burk Labs, Redmond WA Lines: 14