using .net object
Hi,
Im not a CF programmer so please excuse my ignorance, Im trying to help my CF programmer who is having trouble talking to a .net DLL.
We seem to be able to reference anything that is just a plain method no problem - the issue comes when we expect the method to return a value.
If we just call a method to do something it works fine - if we call a method that returns a value, it throws an error saying that the method does not exist?
so we create an object - works fine
<cfset obj2 = createobject(".net, "CLASS", "PATH to dll")>
run the method that doesn't return anything - works fine
<cfset str = obj2.method("var","var","var")>
but how do we get a method that returns a value?
i.e. we want to set the variable result to be the return value from obj2.returningmethod with 3 parameters
<cfset result - obj2.returningmethod("var","var","var")>
can anyone help or point out what we are doing wrong?
Thanks