Nichlas, 

I know from trying to do it that I've never been able to get a com object to
work when I call it and pass parameters.  I've found that I need to set
properties on the object then call the method.  So I would change your
object to have properties named like your parameters and use them.  This
would change your code to be something like the following:

<CFOBJECT TYPE="COM"
          NAME="veasy"
          CLASS="VerifyEasyServer.VEServer"
          ACTION="CREATE">

<CFSET veasy.BillingFirstName = "nicklas">
<CFSET veasy.BillingLastName = "af ekenstam">
<CFSET veasy.BillingCity = "stockholm">
<CFSET veasy.BillingCountry = "sweden">
<CFSET veasy.CC = "5412530157557197">
<CFSET veasy.ExpM = 02>
<CFSET veasy.ExpY = 02>
<CFSET veasy.EMail = "[EMAIL PROTECTED]">
<CFSET veasy.IP = "127.0.0.1">
<CFSET veasy.Data = "toga order">
<CFSET veasy.Currency = "sek">
<CFSET veasy.TransID = "1">
<CFSET veasy.Extra = "1">

<CFSET authorize = veasy.authorize>

Hope this helps!
______________________________________________________
Bill Grover
Supervisor IS Department        Phone:  301.424.3300 x396
EU Services, Inc.                       FAX:      301.424.3300 x1396#
649 North Horners Lane          E-Mail: mailto:[EMAIL PROTECTED]
Rockville, MD 20850-1299        WWW:      www.euservices.com
______________________________________________________


> -----Original Message-----
> 
> Date: Tue, 9 May 2000 22:59:33 +0930
> From: "Leong Yew" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Subject: RE: cfobject & com
> Message-ID: <[EMAIL PROTECTED]>
> 
> Nicklas,
> 
> I'm not sure how the function calls are made in this 
> component. It seems to
> me you may have been using the "authorize" method 
> incorrectly. Perhaps you
> could check to make sure you have the correct order in the list of
> arguments.
> 
> Leong.
> -----Original Message-----
> From: Nicklas af Ekenstam [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, May 09, 2000 8:16 PM
> To: [EMAIL PROTECTED]
> Subject: cfobject & com
> 
> 
> Hi
> 
> I have a com-object named VerifyEasyServer that has a method called
> SimpleAuthorize that looks like this when viewed with oleviewer:
> "        HRESULT SimpleAuthorize(
>                          [in] BSTR BillingFirstName,
>                          [in] BSTR BillingLastName,
>                          [in] BSTR CC,
>                          [in] int ExpM,
>                          [in] int ExpY,
>                          [in] int Amount,
>                          [in] BSTR Currency,
>                          [in] BSTR TransID,
>                          [out] int* VerifyID,
>                          [out, retval] int* ReturnCode);"
> 
> I invoke it like this:
> 
> <CFOBJECT TYPE="COM"
>            NAME="veasy"
>            CLASS="VerifyEasyServer.VEServer"
>            ACTION="CREATE">
> 
> No problem.
> 
> The I go for the authorization like this:
> 
> <CFSCRIPT>
> BillingFirstName = "nicklas";
> BillingLastName = "af ekenstam";
> BillingCity = "stockholm";
> BillingCountry = "sweden";
> CC = "5412530157557197";
> ExpM = 02;
> ExpY = 02;
> EMail = "[EMAIL PROTECTED]";
> IP = "127.0.0.1";
> Data = "toga order";
> Currency = "sek";
> TransID = "1";
> Extra = "1";
> </CFSCRIPT>
> 
> <CFSET authorize  = veasy.authorize("#BillingFirstName#",
> "#BillingLastName#", "#BillingCity#", "#BillingCountry#", 
> "#CC#", #ExpM#,
> #ExpY#, "#EMail#", "#IP#", "#Data#", "#Currency#", 
> "#TransId#", "#Extra#")>
> 
> And voila:
> 
> Error Diagnostic InformationArguments expected by object does 
> not match
> arguments specified in the tag. Error building an argument list for:
> AUTHORIZE The error occurred while processing an element with 
> a general
> identifier of (CFSET), occupying document position (42:1) to 
> (42:207) in
> the template file 
> D:\www_toga\secure.toga.se\test.cfm.Date/Time: 05/09/00
> 12:51:13
> Browser: Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)
> Remote Address: 212.75.71.111
> HTTP Referer: https://secure.toga.se/
> 
> 
> What am I doing wrong?
> 
> Thanks in advance for any help whatsoever.
> 
> //Nicklas af Ekenstam
> 
------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to