As of ColdFusion (2021 release), CORBA has been removed. You can no longer use CORBA-related features, functions, and tags.
The CreateObject function can create a Component Object Model (COM) object. To create a COM object, provide the following information:
The arguments and return types of the object's methods
For most objects, you can get this information from the OLEView utility.
On UNIX, this function does not support COM objects. |
A COM object.
CreateObject(type, class, context, serverName)
ReleaseComObject, cfobject; Integrating COM and CORBA Objects in CFML Applications in the Developing ColdFusion Applications
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:
|
The following example creates the Windows Collaborative Data Objects (CDO) for NTS NewMail object to send mail. You use this code in a cfscript tag.
Mailer = CreateObject("COM", "CDONTS.NewMail");
Sign in to your account