J
Jaco Naude
Hi,
I am running into a problem where I am trying to import C DLL into a
Visual C++ 2008 application. The functions in the C DLL are obviously
not name mangled (verified using Dependency Walker). When I try to use
any of the functions from the DLL, VC++ mangles these names (or so it
looks like) and complains that it can't link to mangled versions of
the function names. To avoid this I've figured that I need to declare
the functions I would like to use from the DLL as follows:
extern "C"
{
void Py_Initialize(void);
}
Is there any easier way of doing this than to declare all the
functions in the DLL using extern "C"?
Thanks
Jaco
I am running into a problem where I am trying to import C DLL into a
Visual C++ 2008 application. The functions in the C DLL are obviously
not name mangled (verified using Dependency Walker). When I try to use
any of the functions from the DLL, VC++ mangles these names (or so it
looks like) and complains that it can't link to mangled versions of
the function names. To avoid this I've figured that I need to declare
the functions I would like to use from the DLL as follows:
extern "C"
{
void Py_Initialize(void);
}
Is there any easier way of doing this than to declare all the
functions in the DLL using extern "C"?
Thanks
Jaco