View previous topic :: View next topic |
Author |
Message |
KennyT
Joined: 02 Aug 2005 Posts: 317
|
Posted: Mon Feb 18, 2013 3:50 pm Post subject: C++ function returning an array - can STDCALL cope? |
|
|
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 |
|
Back to top |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 7924 Location: Salford, UK
|
Posted: Mon Feb 18, 2013 10:24 pm Post subject: |
|
|
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. |
|
Back to top |
|
|
KennyT
Joined: 02 Aug 2005 Posts: 317
|
Posted: Mon Feb 18, 2013 11:06 pm Post subject: |
|
|
thanks Paul, I thought as much and have already made the same suggestion to the third party programmer.
K |
|
Back to top |
|
|
|