C++中的函数声明是这样的
std::string GetString(const std::string& s);在C#中怎么写呢
[DllImport("",EntryPoint="",CharSet=CharSet.Auto,CallingConvention=)]C++中的调用约定是Cdecl
std::string GetString(const std::string& s);在C#中怎么写呢
[DllImport("",EntryPoint="",CharSet=CharSet.Auto,CallingConvention=)]C++中的调用约定是Cdecl
解决方案 »
- C#截取特定的字符串
- Winform程序提问,需要在主机和客户端间传送文件。请问如何做?
- |zyciis| 如何在windows 中的任意地方 按了键盘的[F10] 就能掉用我的WinForm程序的一个按钮事件
- ProgressBar
- NET Remoting中序列化对象的内存释放问题
- 请教各位高手如何在c#中显示多页的tif 格式的文件呀,用picturebox 只能显示第一页, 使用printdocument 打印时也只能打印一页
- 一个关于联系人的问题???
- 走投无路了,大家帮帮忙
- 求介绍C#。net所有控件的书下载,高分相送~~
- C#中如何将图片保存在Access数据库?
- windows service接口处理中的多线程问题
- 急求xtralist详细使用方法,有具体例子最好
[return: MarshalAs(UnmanagedType.LPStr)]
public static extern string GetString(string);
{
}
return Marshal.PtrToStringAnsi(GetDLLName()); 试下