I tried to create a function which is returning a vector
in C++. But when it built to dll, the function name seems to be mangled.
I tried to use the extern C
but the problem is return type vector
cannot support if I use extern C
Error : C Linkage function cannot return C++ class std:: Vector
Below is the code I am using
class __declspec(dllexport) TestClass
{
public:
string sClassName;
string sName;
string sDescription;
};
extern "C"
{
vector<TestClass> __declspec(dllexport) GetInfoList();
}