M
mr_nice
I have a C DLL which accesses a database (actually it accesses another dll
which accesses the database, don't ask its an historical thing ). From VB
I pass the experiment number and the signal type I require (i.e experiment
10 and magnetic field data) and the C DLL uses a function called 'getdat'
and hey presto I have two arrays of floats which are time and data (UBound
is diiferent for different data types but UBound(time) = UBound(data) ). I
need these two arrays passed back to my VB program.
Do I need to create a safearray and pass the result back somehow?? I have
no real understanding of these safearrays and I am completely lost in how
to pass these arrays back and therefore, any help would be brilliant. I
appreciate there maybe better methods to send and return data than dll's
but I am dealing with old historical methods of data retreival and this is
the only option I have.
If I could get any any examples of passing back two arrays or maybe
combining the two in a two dimensional array (as they are the same size) I
would be extremely grateful as I have reached the limits of my programming
ability and am at the communities mercy.
Nice
which accesses the database, don't ask its an historical thing ). From VB
I pass the experiment number and the signal type I require (i.e experiment
10 and magnetic field data) and the C DLL uses a function called 'getdat'
and hey presto I have two arrays of floats which are time and data (UBound
is diiferent for different data types but UBound(time) = UBound(data) ). I
need these two arrays passed back to my VB program.
Do I need to create a safearray and pass the result back somehow?? I have
no real understanding of these safearrays and I am completely lost in how
to pass these arrays back and therefore, any help would be brilliant. I
appreciate there maybe better methods to send and return data than dll's
but I am dealing with old historical methods of data retreival and this is
the only option I have.
If I could get any any examples of passing back two arrays or maybe
combining the two in a two dimensional array (as they are the same size) I
would be extremely grateful as I have reached the limits of my programming
ability and am at the communities mercy.
Nice