|
-
August 1st, 2011, 03:59 PM
#14
Re: How to call a C++ dll function at runtime ?
 Originally Posted by Mike Pliam
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().
Vlad - MS MVP [2007 - 2012] - www.FeinSoftware.com
Convenience and productivity tools for Microsoft Visual Studio:
FeinWindows - replacement windows manager for Visual Studio, and more...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|