Origin Version (Select Help-->About Origin): 7.5 Operating System: Winxp
Trying to fit a quite complex user-defined external dll function. The template provided in File Exchange supports .c grammar only. Is there any template showing how to code external dll by .cpp in visual c 6.0? thanks.
Seems that Ocolleagues are busy so I did it by myself. Here is the procedure to share with those who have the same request.
Definition of the problem: If you want to sovle a complicated fitting problem, which involes 1) calculation of complex numbers (#include <complex>); 2) calling memeber functions of an existing C++ class; 3) you are an OOP lover.
Modifications required: 1) rename FitFuncs.c to FitFuncs.cpp 2) replace FAR PASCAL by __stdcall 3) delcare LPDOUBLE and LPSHORT in this way instead: typedef double* LPDOUBLE; typedef short* LPSHORT;