I need to build a basic DLL: f(x)=x*x in Borland 4.52 in W31
I call this DLL from a Visual Basic macro in Excel5 to get
the result of the calculation.
I know how to call this DLL from Excel, but I don't know how to create the DLL in Borland.
For the moment my .cpp file contains:
extern double _export FAR test_calc (double x);
double FAR _export test_calc (double x)
int FAR PASCAL LibMain (HANDLE, WORD, WORD, WORD, LPSTR)
But the macro returns:"Not definied function in the specified DLL" (I know the Visual Basic macro is correct).
Is the .cpp file correct to idenfiy the entry variable and
to return this simple result ?