Hello,
I'm trying to load dll to MATLAB but unfortunatelly I dont have original header file for it. On the other hand I know that in another C like language this dll is imported like this
#import "dynamicZone.dll" double dzBuy(double& sourceArray[],double probabiltyValue, int lookBack, int bars, int i ); double dzSell(double& sourceArray[],double probabiltyValue, int lookBack, int bars, int i );#import
so I created my header file like this
#ifndef dynamicZone#define dynamicZone#ifdef __cplusplusextern "C" {#endif /* __cplusplus *//* Functions and data types defined... */double __stdcall dzBuy(double * sourceArray[],double * probabiltyValue, int * lookBack, int * bars, int * i );double __stdcall dzSell(double * sourceArray[],double * probabiltyValue, int * lookBack, int * bars, int * i );#ifdef __cplusplus}#endif /* __cplusplus */#endif
but when I try to load it I get 'dynamicZone.dll is not a valid Win32 application'. Is it maybe that I used * in double& sourceArray[] ??
Any idea ??
Krzysztof
Best Answer