我正在从CF4.5升级到CF8。调用COM 4.0 dll的版本现在在4.5版本中工作,现在会抛出一个“复杂对象类型无法转换为简单值..”的错误。 COM对象有几个数组定义为输出参数。这些变量被定义为Coldfusion中的数组。有什么想法可以改变CF导致这个问题,我能做些什么来解决它?ColdFusion COM错误
编辑:
这是CF代码:
Arg2 = ArrayNew(1);
answer = ComObject.Test(1,"Arg2"); <------This line throws the error
的VB的ActiveX DLL的代码:
Public Function AddNumbers(number1 As Integer, ByRef Arg2() As String) As String
AddNumbers = "hello"
End Function
请表明引发错误的代码。 – Tomalak 2009-11-09 13:22:37