将字符串数组从C ++返回到C# [英] Return string array from C++ to C#
本文介绍了将字符串数组从C ++返回到C#的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
我有一个需要从C#应用程序调用C ++ DLL的要求. C ++ DLL将字符串数组作为参数之一,应将其填充到DLL中,并应返回到C#应用程序.谁能解释一下我在C#和C ++中需要使用的语法以及任何特定于编译器的设置.我正在使用VS2008.
提前谢谢.
Santu
Hi everyone,
I have a requirement wherein I need to call C++ DLL from a C# application. The C++ DLL takes a string array as one of the parameters, which should get filled inside the DLL and should return to C# application. Can anyone please explain me the syntax I need to use in both C# and C++ and any compiler specific settings. I''m using VS2008.
Thanks in advance.
Santu
推荐答案
^ ]可能对您有用. :)
This[^] might be useful for you. :)
这篇关于将字符串数组从C ++返回到C#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文