yeah, I caught that and fixed it later. It was a cut and paste. The
problem is that the API is locked without a unlock key, which I forgot
to get while the company who produces this was still open. :o(
Thanks for helping!
Chris
Josh Nathanson wrote:
> I see a typo in your code, did you cut and paste that?
> This:
> <cfset str = BBAPI.getVINValues("#VIN#)">
>
> Could be this, as long as VIN evaluates to a string:
> <cfset str = BBAPI.getVINValues(VIN)>
>
> -- Josh
>
> ----- Original Message -----
> From: "Christopher Jordan" <[EMAIL PROTECTED]>
> To: "CF-Talk" <[email protected]>
> Sent: Tuesday, March 27, 2007 3:23 PM
> Subject: Re: Need help instantating a COM object in CF7... It's my first
> time... :o(
>
>
>> 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")
>>>
>>>
>>>
>>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create Web Applications With ColdFusion MX7 & Flex 2.
Build powerful, scalable RIAs. Free Trial
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJS
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:273937
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4