Quote Originally Posted by Mike Pliam View Post
Say the dll code contains the following declarations:
Code:
extern MY_API double * pVector;

// Get rid of name mangeling
extern "C"
{
...
	MY_API double * fvec(void);
...
	MY_API void cleanup(void);
...
}
...What am I doing wrong?
Your cleanup(), obviously, should take as a parameter a pointer returned by fvec().