Silverfrost Forums

Welcome to our forums

C++ function returning an array - can STDCALL cope?

18 Feb 2013 2:50 #11574

I;m trying to link to a C++ routine (provided by a 3rd party) which is declared as:

double[] ICurve_GetValues(...)

I've got, in my 'wrapper':

REAL*8 :: RET(IVALUECOUNT)

STDCALL IP_ICurve_GetValues_ 'ICurve_GetValues'(...) : REAL*8
RET =  IP_ICurve_GetValues_  (...)

but it crashes when called. I'm guessing I've got the STDCALL syntax wrong?

TIA

K

18 Feb 2013 9:24 #11578

My first thought is that this will not work, whether STDCALL or not.

If the third party can make a change then you would stand a better chance if the array of doubles was an argument.

18 Feb 2013 10:06 #11581

thanks Paul, I thought as much and have already made the same suggestion to the third party programmer.

K

Please login to reply.