Link to home
Start Free TrialLog in
Avatar of raizon
raizon

asked on

Resources on SubClassing

Does anyone have any good resources on SubClassing, preferrably On-Line.

Busically I'm just wanting to know the theory behind subclassing, and practices.

Just trying to become a better VB Programmer

Thanks
ASKER CERTIFIED SOLUTION
Avatar of SimonORorke
SimonORorke

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Subclassing is not good practice in business applications.  It is too hardcore and maintenance is problematic.

But it is good to know it.

If you use it in real app, make sure there is a very good reason.
Avatar of SimonORorke
SimonORorke

In my previous comment the name of Dan Appleman's book should have been "Visual Basic Programmer's Guide to the Win32 API".  For further info on this book, see the page on Appleman's web site http://www.desaware.com/VBPGWin32APIL2.htm.

I'd just add to ameba's comment of caution by saying that if you do use subclassing in production applications, I would recommend providing clear and detailed documentation of what you are doing.  In an application I recently wrote with a great deal of subclassing, there are more comment lines than lines of code in the rather large subclassing procedure.  When someone else has to maintain the program, there's a good chance they will not know much about subclassing, so I've tried to help them get into it if they have to.
Avatar of raizon

ASKER

Thanks to everyone for the comments.

This article and book reference was the most helpful.