302
CFML Language Reference
OLEView, as well as information about COM and DCOM, can be found at Microsoft’s
OLE Development web site http://www.microsoft.com/oledev/.
To create COM objects, you need to know the program ID or filename of the object, the
methods and properties available through the IDispatch interface, and the arguments
and return types of the object’s methods. The OLEView utility can give you this
information for most COM objects.
Syntax
CreateObject
("COM",
class, context, , serverName)
class
Required. Enter the component ProgID for the object you want to invoke.
context
Optional. "InProc", "Local", or "Remote". Uses Registry setting when not
specified.
serverName
Required when CONTEXT="Remote". Enter a valid server name using UNC
(Universal Naming Convention) or DNS (Domain Name Server) conventions, in
one of the following forms:
SERVER="\\lanserver"
SERVER="lanserver"
SERVER="http://www.servername.com"
SERVER="www.servername.com"
SERVER="127.0.0.1"
CORBA
CreateObject allows you to call methods in CORBA objects. These CORBA objects must
already have been defined and registered for use.
Syntax
CreateObject
("CORBA",
class, context, locale, )
class
Required. Specifies different information, depending on the CONTEXT
specification:
•
If CONTEXT is IOR — Specifies the name of a file that contains the string
version of the IOR. ColdFusion must be able to read this file at all times; it
should be local to ColdFusion server or on the network in an open, accessible
location.
•
If CONTEXT is NameService — Specifies a period-delimited naming context for
the naming service, such as Allaire.Department.Doc.empobject.
context
Required. Specifies one of the following:
Summary of Contents for COLDFUSION 4.5-CFML LANGUAGE
Page 1: ...Allaire Corporation CFML Language Reference ColdFusion 4 5...
Page 207: ...Chapter 1 ColdFusion Tags 183 CFCATCH CFTRY BODY HTML...
Page 224: ...200 CFMLLanguageReference CFOUTPUT P Text within CFOUTPUT is always shown CFOUTPUT BODY HTML...
Page 336: ...312 CFMLLanguageReference CFIF BODY HTML...
Page 404: ...380 CFMLLanguageReference DE It is morning CFOUTPUT P BODY HTML...
Page 413: ...Chapter 2 ColdFusion Functions 389 Customer BalanceDue BR CFOUTPUT CFIF BODY HTML...
Page 483: ...Chapter 2 ColdFusion Functions 459 CFOUTPUT CFLOOP BODY HTML...
Page 584: ...560 CFMLLanguageReference...
Page 594: ...570 CFMLLanguageReference...