CREATEOBJECT: COM OBJECT | |||
Description
The CreateObject function can create a Component Object Model (COM) object. To create a COM object, you must provide this information:
For most objects, you can get this information from the OLEView utility.
|
|||
Returns
A COM object. |
|||
Function syntaxCreateObject(type, class, context, serverName) |
|||
See also
ReleaseComObject, cfobject; Chapter 38, "Integrating COM and CORBA Objects in CFML Applications" in ColdFusion MX Developer's Guide. |
|||
Parameters
|
|||
Usage
The following example creates the Windows Collaborative Data Objects (CDO) for NTS NewMail object to send mail. You would use this code within a cfscript tag. Mailer = CreateObject("COM", "CDONTS.NewMail"); |
TYPE | |
CLASS | |
CONTEXT | |
SERVERNAME | |