को C++ dll लौटे मैं इस C++हैंडलिंग सरणी सी #
extern "C" __declspec(dllexport)
char* __stdcall hh()
{
char a[2];
a[0]='a';
a[1]='b';
return(a);
}
में बनाया मेरी dll और में यह कैसे मैं सी # में कोड को संभालने के लिए
[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???
}
}
कार्यवाही में मदद कोशिश कर रहा हूँ है आगे की।
आपका प्रश्न वास्तव में क्या है? –
मैं C++ कोड से C++ कोड से सरणी returend मुद्रित करना चाहता हूँ C# – pushE