求教,调用动态库中函数,C#中申明该怎样写? 动态库中的函数C语言申明方式是下面这样的int func1( int , char **);std::string func2( int );在 C#里该定义什么样的格式啊,谢谢! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 [DllImport("abcdefg.dll")]public static extern int func1(int a,string[] b);[DllImport("abcdefg.dll")]public static extern string func2(int a); [DllImport("abcdefg.dll")]public static extern int func1(int a,string[] b);[DllImport("abcdefg.dll")]public static extern string func2(int a); [DllImport("abcdefg.dll")]public static extern int func1(int a,string[] b);[DllImport("abcdefg.dll")]public static extern string func2(int a); 试试这个:http://topic.csdn.net/t/20031211/12/2552240.html 第一个如楼上或者用ref string,看具体需求。第二个用不了,写个C++/CLI吧 把C语言代码翻译成C#语言 请各位帮我看下程序 ★★ webbrowser 如何获取iframe中的html元素? 如何实现播放列表中的文件自动播放? 请教关于winform程序基本问题 菜鸟求助 --------------------- win from 中datagrid如何更改列的名称 怎么将Byte b[] 连接到 Byte a[] 后?就像String::Concat 一样? 请教一个Json字符串转DataTabe的问题----Json嵌套了几层,不会分析了,各位来帮忙哈! 问题 无限节点的树形节点遍历算法 三层架构 DAL层,使用ORACLE数据库,怎样插入一条数据?
public static extern int func1(int a,string[] b);[DllImport("abcdefg.dll")]
public static extern string func2(int a);
public static extern int func1(int a,string[] b);[DllImport("abcdefg.dll")]
public static extern string func2(int a);
public static extern int func1(int a,string[] b);[DllImport("abcdefg.dll")]
public static extern string func2(int a);
或者用ref string,看具体需求。
第二个用不了,写个C++/CLI吧