Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.
-
tomarse #1
Using cfobject to call a dll
Hi all
Hope someone can help me with this problem i have. I have created an online
shop which is using an integrated payment gateway (cybersource for those who
know it). To parse your variables to it securely it uses a .dll that fires them
off and you get a reply back saying if the transaction has gone through
successfully or not. Thats the basics of it anyway.
Now the problem i have is there is only asp code for it, so im trying to
convert the asp to roughly similar CF. To do this ive done the following so
far...
In ASP it calls the dll e.g.
dim oRequest
set oRequest = Server.CreateObject( "CyberSourceWS.Hashtable" )
Ive represented this in CF by...
<cfobject type="com" action="create" class="CyberSourceWS.Hashtable"
name="HashTable">
This seems to work fine. Now the next part is to assign the variables within
the dll with what you wish them to be. For example, in the ASP they do it by ...
oRequest( "billTo_firstName" ) = "Tom" )
I assume this finds the arguement in the dll called "billTo_firstName" and
assigns the value Tom to it. This where i cant work out how to do the same
within CF? Is this possible or am i barking up the wrong tree? Ive tried things
such as
<cfset HashTable.billTo_firstName("Tom")>
But to no avail, as it comes back stating ..
The selected method billTo_firstName was not found.
There are no methods with the specified method name and argument types. Please
check your function and try again.
Any help would be extremely appreciative and i thank you all in advance
Tom Jenkins
tomarse Guest
-
cfobject
Here is my tag that works in CF6, <cfobject action="create" type="java" class="com/sbc/ea/utilities/AddressHashHelper" name="addrHashHelper"> I... -
CFOBJECT error
This error is occurring in CF4.5. I believe this is the first version that CFOBJECT was implemented, but don't know the extent of the error... -
CFObject with ASP Script
Hey All, I have a bit of an issue while trying to get a ASP Script to work in ColdFusion. I was able to connect to the objects, but I was getting... -
Problems with CFOBJECT
We are using CFOBJECT to access a couple different DLL's used to run credit reports. The component works fine in our test application which is a... -
Using CfObject
Tom CF Apr 6, 1:52 am show options From: "Tom CF" <kohlivis...@gmail.com> - Find messages by this author Date: Wed, 06 Apr 2005 08:52:56... -
philh #2
Re: Using cfobject to call a dll
Hi Tomarse,
You need to reformat the CFSET tag. You're invoking the name property as if
it were a method:
<cfset HashTable.billTo_firstName("Tom")>
Try
<cfset HashTable.billTo_firstName = "Tom">
HTH,
philh Guest
-
tomarse #3
Re: Using cfobject to call a dll
unfortunately i still get the same error with your method : (
This new way ive been looking at ...
<cfset oRequest.value("ccAuthService_run","True")>
seems to assign the value to the correct arguement but then if i make up an
arguement such as <cfset oRequest.value("sdfsdfsdfsdf","True")> its still
assigns, so im taking it that it hasnt worked
: (
tomarse Guest
-
Mr Black #4
Re: Using cfobject to call a dll
I think, but not sure, that your last approach is correct. Looks like this
thing simply builds something like this:
name=value&name=value&. . . .&. . .
Therefore, any name and any value are OK. You will get error (or not) when
you actually run the request. Just try...
Mr Black Guest
-
Steve Sommers #5
Re: Using cfobject to call a dll
I don't know the exact terminology as it has been a couple years since I
visited this topic, with Active-X/COM components their are three different
threading models and I think two different definition formations (this is where
I forget the terminology). When I was writing some components to work with CF,
I found that CF only recognizes one fo these combinations (out of 6 possible)
-- all the rest returned errors like you are seeing. At the time (and still to
this day) I was working with CF5 and I have no idea if CFMX (et. al.) has the
same limitation.
Basically I saying, that unless they (CS) dedicate some time to fine tune the
dll for CF, you may be fighting a losing battle. Hope this helps and good
luck...
Steve Sommers Guest



Reply With Quote

