Creating And Using Com Objects - MACROMEDIA COLDFUSION MX 61-DEVELOPING COLDFUSION MX Develop Manual

Developing coldfusion mx applications
Table of Contents

Advertisement

Right-click the object to view it, including the TypeInfo.
3
If you view the TypeInfo, you see the object's methods and properties, as shown in the
following figure. Some objects do not have access to the TypeInfo area, which is determined
when an object is built and by the language used.

Creating and using COM objects

You must use the
object (component) in ColdFusion before your application pages can invoke any methods or
assign any properties in the component.
For example, the following code uses the
(Collaborative Data Objects) for NTS NewMail object to send mail:
<cfobject type="COM"
action="Create"
name="Mailer"
class="CDONTS.NewMail">
The following line shows how to use the corresponding
Mailer = CreateObject("COM", "CDONTS.NewMail");
The examples in later sections in this chapter use this object.
Note: CDO is installed by default on all Windows NT and 2000 operating systems that have installed
the Microsoft SMTP server. In Windows NT Server environments, the SMTP server is part of the
Option Pack 4 setup. In Windows 2000 Server and Workstation environments, it is bundled with the
operating system. For more information on CDO for NTS, see http://msdn.microsoft.com/library/
default.asp?URL=/library/psdk/cdo/_olemsg_overview_of_cdo.htm.
tag or the
cfobject
CreateObject
function to create an instance of the COM
tag to create the Windows CDO
cfobject
CreateObject

Creating and using COM objects

function in CFScript:
767

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the COLDFUSION MX 61-DEVELOPING COLDFUSION MX and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

This manual is also suitable for:

Coldfusion mx

Table of Contents