Visual Basic Concepts
Component Basics
A software component created with Microsoft Visual Basic is a file containing executable code — an .exe, .dll, or .ocx file — that provides objects other applications and components can use.
An application or component that uses objects provided by other software components is referred to as a client. A client uses the services of a software component by creating instances of classes the component provides, and calling their properties and methods.
In earlier versions of Visual Basic, you could create components called OLE servers. The features of components created with Visual Basic are greatly expanded, including the ability to raise events, improved support for asynchronous callbacks, and the ability to provide ActiveX controls and documents.
The following topics provide key definitions and concepts you should be aware of when developing any software component using Visual Basic.
In-Process and Out-of-Process Components Definitions and key differences.
What’s in a Name? The names you choose for objects, events, properties, and methods affect the usability of your component.
Choosing a Project Type and Setting Project Properties Decide which project type to open when starting a new component, based on what features you intend the component to provide.
Polymorphism, Interfaces, Type Libraries, and GUIDs An interface of a class provided by your component is a contract between you and the user, documented in your type library. Classes can have multiple interfaces, identified by GUIDs.
Starting and Ending a Component Startup and shutdown rules all component designers need to know.
For More Information The core information on creating OLE servers, referred to as code components, includes "Creating an ActiveX DLL," "Creating an ActiveX EXE Component," "General Principles of Component Design," "Debugging, Testing, and Deploying Components," "Building Code Components," and "ActiveX Component Standards and Guidelines."