Hi,

I am trying to invoke a COM method within a CFC method which a COM-object(s)
as parameter(s).

e.g.:
<cffunction name="test" access="private" output="false">
        <cfset var oER = createObject("COM","Dllone.ER") />
        <cfset var oEVR = createObject("COM","Dllone.EVR") />
        <cfset var oEVB = reateObject("COM","Dllone.RB") />

...
<cfset oEVR.Add(javacast("string","SomeValue"), oEVB ) />
...
</cffunction>

Error: An exception occurred when executing a Com method.
The cause of this exception was that: AutomationException: 0x80020005 - Type
mismatch..
com.linar.jintegra.NativeObjRef.nativeIDispatchInvoke(Native Method)

The TypeLib Viewer of the DLL outputs:
~~~~~~~~~
Add(    
        [in, out] unsigned char* SomeValue,
        [in,out, optional] _RB** RB); 

~~~~~~~~~
As I cannot cast complex types I cannot find a solution to this problem. I
want a native CF implementation with no wrapper written in Visual Basic. Is
there anybody out there who can help me? Thanks in advance!

Magnus



----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email to 
[email protected] with the words 'unsubscribe cfcdev' as the subject of the 
email.

CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting 
(www.cfxhosting.com).

CFCDev is supported by New Atlanta, makers of BlueDragon
http://www.newatlanta.com/products/bluedragon/index.cfm

An archive of the CFCDev list is available at 
www.mail-archive.com/[email protected]


Reply via email to