tengo esto en mi DLL creada en C++matriz de Manejo regresó de C++ DLL de C#
extern "C" __declspec(dllexport)
char* __stdcall hh()
{
char a[2];
a[0]='a';
a[1]='b';
return(a);
}
Y así es como estoy tratando de manejar código en C#
[DllImport(@"mydll.dll",CharSet = CharSet.Ansi,CallingConvention = CallingConvention.StdCall)]
public static extern IntPtr hh();
static void Main(string[] args)
{
IntPtr a = hh();
//How to proceed here???
}
}
Ayuda en trámite promover.
¿Cuál es exactamente tu pregunta? –
Quiero imprimir el returend de matriz desde código C++ en C# – pushE