jkepler
June 5th, 2009, 06:55 AM
Hi,
I have the following problem: I have a routine in C/C++ (compiled in a DLL) in the form of:
void function1(double rrd[],...){...}
I want to pass an array from VB6 to that routine. So I have the following routine in VB6:
Private Sub function1 Lib "test.dll" (ByRef rrd as double,...)
and I call it:
Dim dat(6)
...
Call function1(dat(0),...)
The problem is that when I call it from VB6 I get always an error - VB6 crashes.
Any suggestions?
Kind regards,
JKepler
I have the following problem: I have a routine in C/C++ (compiled in a DLL) in the form of:
void function1(double rrd[],...){...}
I want to pass an array from VB6 to that routine. So I have the following routine in VB6:
Private Sub function1 Lib "test.dll" (ByRef rrd as double,...)
and I call it:
Dim dat(6)
...
Call function1(dat(0),...)
The problem is that when I call it from VB6 I get always an error - VB6 crashes.
Any suggestions?
Kind regards,
JKepler