J
JackRazz
I'm trying to call a Managed C++ library function from VB and cannot get it to return
the exponent paramater in Frexp(double floatValue, int* exponent). But I'm getting
the following compile error in the vb code:
'Frexp' has a return type that is not supported or parameter types that are not
supported, which is the passed e variable in frexp(d2, e).
Below is the relevant code from the C++ library. I'm very new to C++ and know its
something very simple. Whats wrong with this C++ code?
Thanks - JackRazz
------------------------------------------------
'This is the test VB code:
Dim d1 As Double
Dim e As Integer
Dim d2 As Double = 16.4
d1 = CLib.MyMath.Frexp(d2, e)
------------------------------------------------
// CLib.h
public:
static double Frexp(double floatValue, int* exponent);
------------------------------------------------
// This is the main DLL file.
double CLib::MyMath::Frexp(double floatValue, int* exponent)
{
return frexp( floatValue, exponent );
};
the exponent paramater in Frexp(double floatValue, int* exponent). But I'm getting
the following compile error in the vb code:
'Frexp' has a return type that is not supported or parameter types that are not
supported, which is the passed e variable in frexp(d2, e).
Below is the relevant code from the C++ library. I'm very new to C++ and know its
something very simple. Whats wrong with this C++ code?
Thanks - JackRazz
------------------------------------------------
'This is the test VB code:
Dim d1 As Double
Dim e As Integer
Dim d2 As Double = 16.4
d1 = CLib.MyMath.Frexp(d2, e)
------------------------------------------------
// CLib.h
public:
static double Frexp(double floatValue, int* exponent);
------------------------------------------------
// This is the main DLL file.
double CLib::MyMath::Frexp(double floatValue, int* exponent)
{
return frexp( floatValue, exponent );
};