Quote Originally Posted by Codeplug
How is "MYDLL_API" (conditionaly) defined?

The dll is generated through project wizard in VC2003. In that sense MYDLL_API is standard:

Code:
#ifdef MYDLL_EXPORTS
#define MYDLL_API __declspec(dllexport)
#else
#define MYDLL_API __declspec(dllimport)
#endif
The dll indeed exports the function, but apparently with incorrect mangling.

Please note that there is no problem if the function is made non-constant OR a second non-constant member function is added.

Quote Originally Posted by Codeplug
Can you zip up a minimal, console solution the demonstrates the issue?
I am not sure if I can reproduce the problem in a small test dll. But I may give a try.

Thanks
SB