using vc++ dll
-
I am using a vc++ dll in a vb program. The function require a pass byref single type. because in vc++ it require a floating point pointer. However, the values I'm getting is wrong. Anyone got any idea what could be wrong? I guessing the values are read in the wrong direction. Thanks for any help. Aaron
-
I am using a vc++ dll in a vb program. The function require a pass byref single type. because in vc++ it require a floating point pointer. However, the values I'm getting is wrong. Anyone got any idea what could be wrong? I guessing the values are read in the wrong direction. Thanks for any help. Aaron
float*
is not equal tosingle byref
. byref means the value is passed by reference, where pointers don't. it should befloat&
instead... moreover, i'm not certain thatfloat
is the equivalent tosingle
. isn'tfloat
(vb type) better ?
TOXCCT >>> GEII power
[toxcct][VisualCalc] -
float*
is not equal tosingle byref
. byref means the value is passed by reference, where pointers don't. it should befloat&
instead... moreover, i'm not certain thatfloat
is the equivalent tosingle
. isn'tfloat
(vb type) better ?
TOXCCT >>> GEII power
[toxcct][VisualCalc] -
I have check on msdn, there is no float type for vb 6.0. Not sure about .net. I've look up several papers saying that when the vc function in the dll is using a pointer as a parameter, the vb-side of calling the function should be using byref. Aaron
aarontan wrote: I have check on msdn, there is no float type for vb 6.0. Not sure about .net. Surely VB6 has a type for floating point numbers ? Christian Graus - Microsoft MVP - C++
-
I have check on msdn, there is no float type for vb 6.0. Not sure about .net. I've look up several papers saying that when the vc function in the dll is using a pointer as a parameter, the vb-side of calling the function should be using byref. Aaron
The C/C++
float
data type is equivalent to a VB6Single
. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome