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

ArticlesThe Basics of Web Development


April 1997 / Reviews / The Basics of Web Development

Microsoft's new Visual Basic 5.0, dripping with new features, is redesigned for the Internet.

Steve Gillmor

Microsoft's Internet strategy continues to come into focus with the version 5 release of its best-selling Visual Basic (VB) programming development tool. VB 5.0 (VB5) draws on innovations from a variety of sources: Microsoft's high-end Visual C++ product, the Office 97 suite, and the growing number of Windows NT and Back Office services.

From Office 97 comes a host of user-interface enhancements, including the IntelliSense technology and the streamlined VB Application Edition integrated development environment (IDE), now used by most of the Office products. Visual C++ contributes its native compiler and the ability to create ActiveX contro ls, and VB5's Enterprise Edition scales up with bundled client/server tools, Microsoft Transaction Server 1.0, and a developer version of SQL Server 6.5.

Three Flavors

VB5 comes in three editions: Learning, Professional, and Enterprise. The Learning Edition replaces VB4's Standard Edition, adding an interactive CD-ROM tutorial based on Microsoft's Mastering series. You can't create ActiveX controls with this version, but the freeware Control Creation Edition, which is posted on Microsoft's Web site, comes bundled in the box.

All four editions feature VB5's sleek new IDE , but only the Professional and Enterprise versions leverage the new extensibility model, which exposes virtually all the product's capabilities to programmatic control. This pays off immediately in a series of new Wizards and add-ins.

Active Creation

You can create ActiveX controls from scratch, by combining existing controls, or by extending the features of other controls using subclassing. VB5 lets you work on multiple projects simultaneously to test and debug an ActiveX control project within a separate host project.

The new Forms Layout window lets you position your application's forms at design time, adjusting the look and feel at different resolutions. The Properties window adds a new Categorized view that groups properties by type. The Object Browser can now search one or all referenced libraries and then jump you directly to modules and procedures in your projects.

Active Intelligence

VB5's IntelliSense features take advantage of ActiveX's COM technology, which automatically exposes type information, including objects, properties, methods, and statements. The code window bristles with interactive tools: Quick Info displays context-sensitive syntax for statements and functions, List Members provides a drop-down list of properties and methods when you enter a control's name, and Complete Word fleshes out entity names as you t ype.

Debugging is smarter, too. In break mode, when you position the cursor over a variable, a Data Tip pops up, displaying the value. You can run code at design time and in break mode from the Immediate window, drag a variable from the code window into the Watch window, and set breakpoints and current lines by clicking visual margin indicators.

VB5's language enhancements center on the new ActiveX-creation capabili-ties. You can raise events in your components and handle events raised by other applications or your own objects. The Implements statement supports polymorphism, allowing multiple classes to respond to the same interface.

Rolling your own ActiveX control is not a trivial endeavor, but the ActiveX Control Interface Wizard makes it easier by marrying properties, methods, and events for common controls with your own custom interface. The Property Page Wizard assembles a tabbed properties dialogue that your control's user accesses at design time by right-clicking on the cont rol.

The Professional and Enterprise versions support the creation of Active Documents , a new VB project type that creates applications that can be run in Microsoft's Internet Explorer (see the sidebar "From Form to Active Document"). VB4's Setup Wizard has been enhanced to support ActiveX controls and Active Documents, packaging your components into compressed CAB files (short for Cabinet files) and generating sample Hypertext Markup Language (HTML) code that points at your control.

You can link to secondary CAB files, such as VB5's 700-KB run-time component and other data-access modules, or point at a central location on your intranet. When a browser user clicks on your control or jumps to an Active Document page, the ActiveX code is downloaded to the user's machine, verified for safety, decompressed, registered in the Windows registry, installed, and then activated.

True Compilation

With VB5's native-code compiler technology, deve lopers now have the choice of compiling in VB's interpreted pseudocode format or directly in optimized native-code format.

Compiled code delivers up to 20 times the performance of pseudocode; this is particularly noticeable with compute-intensive operations common to three-tier distributed applications. To use the multithreading support, you must use the Unattended Execution option to build components that suppress all message boxes and dialog boxes, letting your program operate unattended on remote computers.

To the Enterprise

The Enterprise Edition tools move well beyond VB4's tentative steps into three-tier development. Microsoft Transaction Server shields VB developers from the complexities of distributed component architectures, handling server registration, process and thread management, resource management and synchronization, and component-based security.

The Visual Database Tools incorporate Microsoft Access's drag-and-drop user interface. The Database Designer fo r SQL Server 6.5 directly attaches to your prototype database; you can interactively change SQL field data types and let the Database Designer rebuild your database under document description language (DDL) script control. The Query Designer allows you to construct SQL statements with visual and direct editing windows, updating in real-time on one screen.

VB5 provides an integrated Transact SQL Debugger that lets you step through stored procedure code as if it were application code. Other tools streamline data connections, save processing time with batch operations, and perform simulations to profile multitier application performance in different network topologies.

The Last Box

VB5 will prove to be as important to Microsoft's fortunes as it is for programmers'. The ActiveX and Active Documents technologies provide an automated migration path via the Web that can transparently replicate changes to Microsoft Office, Back Office, and Windows tools as you browse the Web. This versi on may be the last copy of VB that you buy in a box.


Where to Find


Visual Basic 5.0....................Price unavailable at press time

Requires 486/66, Windows 95 or NT, a VGA or better monitor, and
CD-ROM. Memory and disk requirements vary with the three editions.
Microsoft Corp.
Redmond, WA
Phone:    (206) 882-8080
Fax:      (206) 936-7329
Internet: 
http://www.microsoft.com/vbasic/

Circle 1087 on Inquiry Card.

HotBYTEs
 - information on products covered or advertised in BYTE


Ratings

Technology          *****
Implementation      *****


Key

***** Outstandin
g
**** Very Good
*** Good
** Fair
* Poor



Active VB Conversion

screen_link (51 Kbytes)

VB5's ActiveX Document Migration Wizard converts a standard VB application to a Web-ready Active Document.


Brimming Over with Options

screen_link (74 Kbytes)

VB5's IDE brims over with explo rers, browsers, and pop-ups.


sgillmor@aol.com .

Up to the Reviews section contentsGo to next article: From Form to Active DocumentSearchSend 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