Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem accessing COM object in CF

Status
Not open for further replies.

mkistler

Programmer
Joined
Apr 22, 2002
Messages
8
Location
US
I am pretty new to Coldfusion. I am hoping to re-use code created in PowerBuilder. I have a com object (aplite.dll) that has been registered on the CF Server.

OLEView shows the following methods:
___________________________________________
[
uuid(05537171-1B48-4795-B61D-1E7E53BA818F),
dual,
nonextensible
]
dispinterface Iapl_customer {
properties:
methods:
[id(0x00000001)]
double calc_total_down();
[id(0x00000002)]
double calc_over_allowance();
[id(0x00000003)]
double calc_net_trade();
[id(0x00000004)]
void set_cust_name([in] BSTR as_cust_name);
[id(0x00000005)]
void set_cust_ssn([in] BSTR as_cust_ssn);
[id(0x00000006)]
void set_cust_trade_acv([in] double as_cust_trade_acv);
[id(0x00000007)]
void set_cust_trade_show([in] double as_cust_trade_show);
[id(0x00000008)]
void set_cust_trade_lien([in] double as_cust_trade_lien);
[id(0x00000009)]
void set_cust_down_pmt([in] double as_cust_down_pmt);
[id(0x0000000a)]
BSTR get_cust_name();

[id(0x0000000b)]
BSTR get_cust_ssn();
[id(0x0000000c)]
double get_cust_trade_acv();
[id(0x0000000d)]
double get_cust_trade_show();
[id(0x0000000e)]
double get_cust_trade_lien();
[id(0x0000000f)]
double get_cust_down_pmt();
};
___________________________________________________
I am using the following code to create and access the object:

<cfobject
type=&quot;COM&quot;
action=&quot;CREATE&quot;
class=&quot;PB70.apl_customer&quot;
name=&quot;CustObject&quot;>
<cfset custname=CustObject.get_cust_name()>
<cfoutput>#custname#</cfoutput>

When I run the page, I get the following error:
_______________________________________________
Error Occurred While Processing Request
Error Diagnostic Information


The error occurred while processing an element with a general identifier of (CFSET), occupying document position (37:1) to (37:43).


Date/Time: 04/22/2002 11:58:07 AM
Browser: Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)
Remote Address: 192.168.1.138
HTTP Referrer: ___________________________________________________________
What am I missing?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top