D
DasNeo
Guest
Hey,
I'm trying to call my C#-DLL from C++ (DLL):
__declspec(dllexport) int CosComDoStuff( string one, string two)
{
try {
return CosCom:iverse:oStuff(one, two);
}
catch (Exception^) {
return 0;
}
}
'int CosCom:iverse:oStuff(System::String ^,System::String ^)':
cannot convert argument 1 from 'std::string' to 'System::String ^'
C# function:
static public int DoStuff(string one, string two)
How do I do that? I need to keep declspec.
Thanks,
André.
Continue reading...
I'm trying to call my C#-DLL from C++ (DLL):
__declspec(dllexport) int CosComDoStuff( string one, string two)
{
try {
return CosCom:iverse:oStuff(one, two);
}
catch (Exception^) {
return 0;
}
}
'int CosCom:iverse:oStuff(System::String ^,System::String ^)':
cannot convert argument 1 from 'std::string' to 'System::String ^'
C# function:
static public int DoStuff(string one, string two)
How do I do that? I need to keep declspec.
Thanks,
André.
Continue reading...