Getting Started with COM/DCOM
Registering the object
after you acquire the object you want to use, you must register it with Windows in
order for ColdFusion (or any other program) to find it. Some objects might be
deployed with their own setup programs that register objects automatically, while
others might require manual registration.
You can register Inproc object servers (*.dll, *.ocx) manually by running the
regsvr32.exe utility using the following form:
regsvr32 c:\path\servername.dll
You typically register local servers (*.exe) either by starting them or specifying a
command line parameters, such as the following:
C:\pathname\servername.exe -register
Finding the component ProgID and methods
Your COM object should provide documentation explaining each of the
component's methods and the ProgID. With this information, you are ready to use
the
the component's interface.
Using the OLE/COM Object Viewer
The OLE/COM Object Viewer installation installs the executable by default as
\mstools\bin\oleview.exe. You use the Object Viewer to retrieve a COM object's
Program ID as well as its methods and properties.
After have install a COM object, make sure you register it using the regsvr32.exe
utility. Otherwise, you cannot find the object in the Object Viewer. The Object Viewer
retrieves all COM objects and controls from the registry and presents the
information in a simple format, sorted into groups for easy viewing.
By selecting the category and then the component, you can see the Program ID of the
COM object you want to use. The Object Viewer also gives you access to options for
the operation of the object.
tag. If you do not have documentation, use the Object Viewer to view
cfobject
371
Need help?
Do you have a question about the COLDFUSION 5-DEVELOPING and is the answer not in the manual?