|
I think what you mean is not that the method returns 4 parameters, but rather that it uses pointers (or pass by reference/out variables) for some of the parameters, with the expected behavior being that the variables are modified by the function. So your method would look like this:
SomeMethod(InVar1, InVar2, *OutVar1, *OutVar2, *OutVar3, *OutVar4)
When you pass “by reference” from CF to a COM object, you need to enclose the variable name in quotes. So your call should look like this:
<CFSET retVal = SomeMethod(myVar1, myVar2, “myVar3”, “myVar4”, “myVar5”, “myVar6”)>
I personally have avoided passing CF arrays into COM objects, so I’m not fully sure how they will behave. If, however the method you’re calling appears when you CFDUMP an instance of the object, you shouldn’t have any problems calling it.
Take a look at the following sections in the CF docs for some specifics. “Getting started with COM and DCOM” “Accessing Complex COM Objects using Java proxies” “Connecting to COM objects” “General COM object considerations”
Hope this helps. Roland From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Schreck, Thomas (PPC)
I’ve been pulled into this project because the guy who was doing this left. Anyways, my boss was explaining that the ActiveX methods have multiple out parameters and that CFMX can not handle having multiple parameters returned to it. This does not make sense because I know CFMX can handle multiple recordsets returned from stored procedures for instance. I know stored procedures and ActiveX are not the same, but I’m thinking CFMX should be robust enough to handle multiple returns from ActiveX.
So, the ActiveX method has 6 different parameters (2 for data coming into the method and 4 parameters returning data). Each parameter being returned is an array of data. What would help me is to know whether CFMX can handle multiple variables returned from an ActiveX method. And if so, what does the syntax look like? Is it possible that CFMX cannot understand how ActiveX defines an array? Are there conversions that have to take place?
Does this make sense? I’m not sure if code examples will be beneficial.
Thanks for your help for someone in a tight place.
Tom
From: Roland Collins [mailto:[EMAIL PROTECTED]
We do a lot of ActiveX/COM/.NET integration with CF . . . what exactly do you mean by “returning data in multiple variables”? Some examples would help greatly.
Roland Collins
From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Schreck, Thomas (PPC)
Our business system exposes data through a series of ActiveX classes. We need data to be made available to a website via methods in an ActiveX Class. The problem appears to be that the ActiveX methods are returning data in multiple variables which is causing CFMX to choke. We are attempting to introduce C# webservices as a middle man layer between ActiveX and CFMX. This is adding more complexity. I’m not familiar with interacting between ActiveX and CFMX. Any help would be appreciated.
Thanks -
Tom Schreck 817-252-4900 [EMAIL PROTECTED]
I have not failed. I've found 10,000 ways that won't work.
- Thomas Edison
|
- [CFCDev] OT: CFMX and ActiveX Schreck, Thomas (PPC)
- RE: [CFCDev] OT: CFMX and ActiveX Roland Collins
- RE: [CFCDev] OT: CFMX and ActiveX Schreck, Thomas (PPC)
- Roland Collins
