COM Component Code Samples
Although ASP pages are very versatile and powerful for creating dynamic Web content, sometimes you find that tasks are too big for ASP pages. These tasks run faster from a compiled COM component that is called from an ASP page like any other object. In ASP Code Samples, there are samples that call COM components that already exist, such as the ASP built-in objects or the COM components that are installed with IIS. The examples in this section are for COM components that you develop yourself.
In this section of the documentation are descriptions of IIS code samples for COM components. IIS samples are included in the IIS Software Developer Kit (SDK). You can download the IIS SDK from Platform SDK Update. You can view the SDK at MSDN Online. In the table of contents at MSDN Online, click Web Development, Server Technologies, Internet Information Services (IIS), SDK Documentation, Internet Information Services, Samples.
The samples are organized by language because developers often have a favorite:
Samples | Description | Coding Languages | Related Documentation |
---|---|---|---|
Simple VB Component | Sample of VB source code that compiles into a COM object that can access the ASP intrinsic objects. | Written in VB | Accessing ASP Built-In Objects from Components,
Implementing with Visual Basic, and Using the COM+ ObjectContext Object to Access the ASP Built-in Objects |
Simple ATL Component Component that Accesses ASP Intrinsic Objects Database Transaction Component |
Samples of VC++ source code that compile into COM objects that illustrate perform simple tasks and use a transaction. | Written in VC++ | Accessing ASP Built-In Objects from Components, |
Important These samples are provided for educational purposes only. They are not intended to be used in a production environment, have not been tested in a production environment, and Microsoft does not provide technical support for them.