Archives
 
 
 
  Special
 
 
 
  About Us
 
 
 

Newsletter
Free E-mail Newsletter from BYTE.com

 
    
           
Visit the home page Browse the four-year online archive Download platform-neutral CPU/FPU benchmarks Find information for advertisers, authors, vendors, subscribers Request free information on products written about or advertised in BYTE Submit a press release, or scan recent announcements Talk with BYTE's staff and readers about products and technologies

ArticlesReal Classes for Visual Basic


June 1996 / Bits / Real Classes for Visual Basic
Rick Grehan

Visual Basic 4.0 added a touch of class to its environment, but the implementation was incomplete. The raison d'être of VB 4.0 classes was to serve as a framework for building OLE automation servers. Consequently, some class-like characteristics--most important, inheritance and polymorphism--were not built into VB 4.0 classes.

Sheridan Software's ((516) 753-985) ClassAssist adds inheritance and polymorphism in such a way that VB 4.0 is not aware that these additional capabilities have been infused. For example, suppose I've declared a class Polygon and I want to derive from it a subclass Rectangle. Rectangle can override Polygon's methods, but should Rectangle wish to explicitly call a Polygon method, it does so by using the syntax Polygon_<methodname > . Polymorphism is achieved through a clever naming convention applied to source code.

However, more that just source code is involved. ClassAssist keeps all classes in a structured library that can be shared across a network. To perform any edits to a class, you must first check it out of the library; when you do so, you can optionally lock the class so that other users are barred from checking it out.

ClassAssist's Class Explorer window is the gateway into the ClassAssist IDE, a structured collection of windows through which you create and edit classes, their properties, and their methods.

ClassAssist automatically generates the .CLS files that VB 4.0 uses and will import classes into your VB 4.0 project at your command; it even keeps everything in synchronization. That is, if you edit a ClassAssist-generated class from VB 4.0, ClassAssist sees the change and asks if you want to pass your edits on to the ClassAssist library. Bundled with ClassAs sist are the WinAPI Oblets, a collection of objects crafted by in-process DLLs that encapsulate significant parts of the Windows API. ClassAssist is well worth its $249 price.


A Touch of VB Class

screen_link (40 Kbytes)


Up to the Bits section contentsGo to previous article: Go to next article: SurveySearchSend a comment on this articleSubscribe to BYTE or BYTE on CD-ROM  
Flexible C++
Matthew Wilson
My approach to software engineering is far more pragmatic than it is theoretical--and no language better exemplifies this than C++.

more...

BYTE Digest

BYTE Digest editors every month analyze and evaluate the best articles from Information Week, EE Times, Dr. Dobb's Journal, Network Computing, Sys Admin, and dozens of other CMP publications—bringing you critical news and information about wireless communication, computer security, software development, embedded systems, and more!

Find out more

BYTE.com Store

BYTE CD-ROM
NOW, on one CD-ROM, you can instantly access more than 8 years of BYTE.
 
The Best of BYTE Volume 1: Programming Languages
The Best of BYTE
Volume 1: Programming Languages
In this issue of Best of BYTE, we bring together some of the leading programming language designers and implementors...

Copyright © 2005 CMP Media LLC, Privacy Policy, Your California Privacy rights, Terms of Service
Site comments: webmaster@byte.com
SDMG Web Sites: BYTE.com, C/C++ Users Journal, Dr. Dobb's Journal, MSDN Magazine, New Architect, SD Expo, SD Magazine, Sys Admin, The Perl Journal, UnixReview.com, Windows Developer Network