|This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.|
The Serverobject provides access to methods and properties on the server. Most of these methods and properties serve as utility functions.
|Server method||Windows CE implementation|
To create a COM object on Windows CE ASP, use the scripting language support for creating COM objects, instead of the Server.CreateObjectmethod, as on IIS.
In JScript, the following code would create the object of type class.name:
<% var newObject = new ActiveXObject("class.name") %>
To perform the same operation by using VBScript, use the following code:
<% dim newObject set newObject = CreateObject("class.name") %>
Unlike with JScript or VBScript, there is no explicit need to delete COM objects that are created on ASP pages. Windows CE ASP automatically deletes all COM objects that are created on ASP pages. See Initial Settingsfor more information on ASP and the caching of DLLs.
Last updated on Friday, April 02, 2004