G
Guest
Hi this is my first post on this newsgroup!! Excited.
My question has to do with importing a dll that was written in C into c#. I
have been able to import it using DLLImport but the issue is the following.
The function call returns the result by reference, but c# does not allow that
so how can I get my result from the function call? here is an example of a
call from the dll.
myAddMethod(double a, double b, double answer)
the result is returned as the variable answer.
How can I get the value of answer in my app?
Thanks.
My question has to do with importing a dll that was written in C into c#. I
have been able to import it using DLLImport but the issue is the following.
The function call returns the result by reference, but c# does not allow that
so how can I get my result from the function call? here is an example of a
call from the dll.
myAddMethod(double a, double b, double answer)
the result is returned as the variable answer.
How can I get the value of answer in my app?
Thanks.