I'm trying to pass a variable of type ViReal64 back from VC++.NET code to
VB.NET code. If I return it simply by declaring the return type of the
function to be double, the results are not reliable- the digits are right
but they have the wrong power of 10.
If I declare the return type to be ViReal64, I still get "double" coming out
in VB. If I try passing back a pointer to a ViReal64 object, VB6 complains
that the return type of the function is not supported.
I've found the "toDouble" method of the ViReal64 object but am having
trouble figuring out how to use it. If I try returning "value.ToDouble" from
my function, I get the error
DMM3 error C3610: 'Double': value type must be 'boxed' before method
'ToDouble' can be called
I do not grea
tly understand this "__box" directive and have not been able to
get anywhere with it.
I notice CVI has functions for converting TO ViReal64, but not for
converting from.
Can anyone explain how to do this?
--
Dr. Craig Graham, Software Engineer
Advanced Analysis and Integration Limited, UK. http://www.aail.co.uk/