Shaii
Dec 12th, 1999, 06:56 PM
I have a function in a c++ dll that gets a pointer to double array. inside a struct.
I defined a UDT in VB5 and passed all the rest of the UDT fields fine, the problem is with this array.
type Type1
par1 as Integer
myArr as double
end type
dim myType as Type1 , arr() as double
ReDim arr(1000)
I don't know how to set myType.myArr to point to arr
if I pass the array seperetly it's easy and it works but I need it in the UDT.
CALL dllfunction(myType,arr(0))
Is this posible???
HELP
Shai
I defined a UDT in VB5 and passed all the rest of the UDT fields fine, the problem is with this array.
type Type1
par1 as Integer
myArr as double
end type
dim myType as Type1 , arr() as double
ReDim arr(1000)
I don't know how to set myType.myArr to point to arr
if I pass the array seperetly it's easy and it works but I need it in the UDT.
CALL dllfunction(myType,arr(0))
Is this posible???
HELP
Shai