Return String From C++ Dll | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
+ 1

Return String From C++ Dll

Hi I Working on a C# WPF Project and i Have a Problem project have a DLL written with C++ (Source is Avaible) this is DLL's Source: #inlcude <iostream> extern "C++" { __declspec(dllexport) string Name(){ return "Hello"; } } When I Call this in C# Code , i Cant Recieve that string and App Crashes! I Calling with [DllImport] Attribute and with CallingConvention.Cdecl Paramter Please Help me...

3rd Feb 2020, 4:37 PM
AliX99
1 ответ
3rd Feb 2020, 5:16 PM
Denise Roßberg
Denise Roßberg - avatar