Hi,
i'm building a dll (with MFC) wich i need to call it from another language.
I declare it in this way
long __declspec(dllexport) __stdcall cfinterfase(CString h);
in the body of the function i need to concatenate 2 string 1 is the argument.
so i do this
long __declspec(dllexport) __stdcall cfinterfase(CString h)
{
CString d = "";
d = "hello " + h;
return 1;
}
i don't know why when it reach the concatenation it crashes and when i put to debug its points to the function memcpy()
Anybody knows why??
thanks.
i'm building a dll (with MFC) wich i need to call it from another language.
I declare it in this way
long __declspec(dllexport) __stdcall cfinterfase(CString h);
in the body of the function i need to concatenate 2 string 1 is the argument.
so i do this
long __declspec(dllexport) __stdcall cfinterfase(CString h)
{
CString d = "";
d = "hello " + h;
return 1;
}
i don't know why when it reach the concatenation it crashes and when i put to debug its points to the function memcpy()
Anybody knows why??
thanks.