Well,
I've solved my problem. I forgot that the vendor of this COM object
locks its use without a key value being set as one of it's properties. oops.
I wish they'd reminded me of that while I was on the phone with them.
grrrr... :o)
Oh well, I'll just have to get it tomorrow.
Jim thanks so much for your help!
Chris.
Christopher Jordan wrote:
> Jim! That worked great! The object instantiated first time. Very cool.
> And the answer makes so much sense! Duh... :op
>
> Anyway,
>
> Now I'm having trouble actually calling any methods in the object. If
> you or anyone could help, I'd be most appreciative (of course, I'll keep
> reading and trying stuff on my own too).
>
> Here's my code:
>
> <!--- instantiate the object and dump it. This works great! --->
> <cfset BBAPI = CreateObject("COM", "BBAPI.API")>
> <CFDump var="#BBAPI#" expand="false"><p>
>
> <!--- Now try to use one of the methods in the object --->
> <cfset VIN = Upper("1g2wn67t8n9264262")>
> <cfset str = BBAPI.getVINValues("#VIN#)">
> <CFDump var="#str#">
>
> I keep getting:
> Variable STR is undefined. What do I do about this? I thought that once
> I had the object instantiated, that I would be able to access it like
> any other object or component. I'm using the method just the way the
> author's API documentation shows.
>
> Stumped again. :o(
>
> Chris
>
> Jim Wright wrote:
>> Try running this at a command prompt...
>> regsvr32 x:\path\com\bbapi.dll
>>
>> Then use...
>> CreateObject("COM", "BBAPI.API")
>>
>>
>>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:273936
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4