V
vijay.gandhi
Hello,
I have created a function in C++/CLI which was exported as a .DLL to
be used in VB .NET. I have been having some problems (I think it has
to do with the right syntax) with parameter passing across the
languages. Can somebody help me please. Details are given below:
The function ComputeMedian(x,y,m_x,m_y) is supposed to have two input
parameters: x, y - both are array of double; and two output
parameters: m_x, m_y - both are just double.
On my C++/CLI side, it is declared as:
double ComputeMedian(array<double>^ x, array<double>^ y, double^
median_x, double^ median_y);
where I assign the values as
*median_x = <function returning median of x[]>
*median_y = <function returning median of y[]>
On my VB.NET side, it is called as:
ComputeMedian(testNumbers, testNumbers, median_x, median_y)
where:
Dim median_x, median_y As New Double
Dim testNumbers() As Double = New Double() {5.0, 3.7, 1.2, 7.6}
The problem is I don't see the values being passed for median_x and
median_y on the VB side. I have debugged the problem and the C++/CLI
program calculates the right values.
Thanks in advance!
Vijay.
I have created a function in C++/CLI which was exported as a .DLL to
be used in VB .NET. I have been having some problems (I think it has
to do with the right syntax) with parameter passing across the
languages. Can somebody help me please. Details are given below:
The function ComputeMedian(x,y,m_x,m_y) is supposed to have two input
parameters: x, y - both are array of double; and two output
parameters: m_x, m_y - both are just double.
On my C++/CLI side, it is declared as:
double ComputeMedian(array<double>^ x, array<double>^ y, double^
median_x, double^ median_y);
where I assign the values as
*median_x = <function returning median of x[]>
*median_y = <function returning median of y[]>
On my VB.NET side, it is called as:
ComputeMedian(testNumbers, testNumbers, median_x, median_y)
where:
Dim median_x, median_y As New Double
Dim testNumbers() As Double = New Double() {5.0, 3.7, 1.2, 7.6}
The problem is I don't see the values being passed for median_x and
median_y on the VB side. I have debugged the problem and the C++/CLI
program calculates the right values.
Thanks in advance!
Vijay.