Hi folks,

I really need some help instantiating a COM object.

I've been given a .dll file, and been told that it is the COM object,
but I don't know how to instantiate it. I thought it would be simple.
I've tried:

<cfset BBAPI = CreateObject("COM", "COM.BBAPI")>

The directory is COM and the dll is called BBAPI. I thought maybe it was
a path thing, but I tried instantiating a CFC (whose directory is on the
same level as the COM directory) and it worked like a champ.

The only thing mentioned about instantiating the object is mentioned in
his component summary. The first two items are:

Type: COM
Name: BBAPI
Note: Used for instantiating the object

Type: Class
Name: API
Note: Used for instantiating the object. (i.e. CreateObject BBAPI.API)

I've tried:

<cfset BBAPI = CreateObject("COM", "COM.API")>
<cfset BBAPI = CreateObject("COM", "COM.BBAPI")>
<cfset BBAPI = CreateObject("COM", "COM.BBAPI.API")>
<cfset BBAPI = CreateObject("COM", "COM.BBAPI.dll")>

I just don't know what to do. The docs say that I need:

<cfset BBAPI = CreateObject("COM", "class")>

Well according to what I'm reading the class is "API".

Can someone help me please? :o)

Chris

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
ColdFusion MX7 and Flex 2 
Build sales & marketing dashboard RIA’s for your business. Upgrade now
http://www.adobe.com/products/coldfusion/flex2?sdid=RVJT

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:273929
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to