Object Oriented Programming In Vb Classic

A page on doing ObjectOriented programming in VbClassic (versions up to 6, but not VB.NET, version 7). VisualBasicDotNet has better features such as true inheritance, but people still have to work with legacy programs.


Introduction material


A good book on Component Development for VbClassic is Developing COM/ActiveX Components with Visual Basic 6 by Dan Appleman.

I put this book up here as well: Visual Basic 6 COM+ Programming Bible by John Paul Mueller.


AreObjectsComponents, and AreComponentsObjects, are they all very confusing to Mainframe developers having to work with Objects? Not if the Objective is to stay employed.

In the case of VbClassic, the objects are always accessed via a particular model, e.g. the ComponentObjectModel (COM). So one could say that the distinction does not actually arise. Of course, the important thing is to define what one means by a "component".

Another Interesting thing to note is that VbClassic supports SingleThreadedApartment (STA) ComComponent only. http://www.devx.com/vb2themax/Door/18897

Another ComComponent ToughLove example. -- dl


ComComponent examples

See three VbClassicSupportForXmlProcessing, XmlRpc and RSS examples at http://www.enappsys.com/backend.jsp


Applications of Com objects created via VbClassic


Suggestions from StevenNewton for beginners in Com technology http://www.microsoft.com/Com/news/drgui.asp The next one looked advanced to me and is C based, but I put it up anyway http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dncomg/html/msdn_cpptocom.asp

Before DotNet days, people started to talk about BusinessObject. One company's view on what that means for VbClassic is described at http://www.asp101.com/articles/visible/vbbizobjprimer/default.asp.


Wiki VbClassic pages to be checked out

Refactoring: Inheritance:


Wiki OO pages to be checked out


See also VbClassicProgrammingModel

Contrast VbClassicSupportForXmlProcessing


CategoryVbClassic CategoryIndex


EditText of this page (last edited February 13, 2009) or FindPage with title or text search