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="COM"
action="CREATE"
class="PB70.apl_customer"
name="CustObject">
<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?
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="COM"
action="CREATE"
class="PB70.apl_customer"
name="CustObject">
<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?