| Contents > CFML Reference > ColdFusion Functions > CreateObject: COM object |
|
|
|
|
||
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.
Note: On UNIX, this function does not support COM objects.
A COM object.
CreateObject(type, class, context, serverName)
Parameter |
Description |
|---|---|
type |
Type of object to create.
|
class |
Component ProgID for the object to invoke |
context |
|
serverName |
Server name, using UNC or DNS convention, in one of these forms:
If |
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");
For more information, see Integrating COM and CORBA Objects in CFML Applications in Developing ColdFusion MX Applications.
|
|
||
| Contents > CFML Reference > ColdFusion Functions > CreateObject: COM object |
|
|
ColdFusion 9 | ColdFusion 8 | ColdFusion MX 7 | ColdFusion MX 6.1 | ColdFusion MX | Forums | Developer Center | Bug Reporting
Version 6.1
Comments are no longer accepted for ColdFusion MX 6.1. ColdFusion 8 is the current version.
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/coldfusion/6.1/htmldocs/functi44.htm