+ 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...
1 Odpowiedź
0
Unfortunately I can't help you but I hope theese links contains a solution for you.
https://www.codeproject.com/Questions/542614/Howplustopluscallplusaplusc-2b-2bplusdllplusinplus
https://stackoverflow.com/questions/16332701/how-to-call-c-dll-in-c-sharp