指针的问题!!!!!!

hansyswin hansyswin 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
我遇到一个问题,详细代码如下:
[DllImport("LClientDll.dll",EntryPoint="LClientStartDemo",ExactSpelling=false,CallingConvention=CallingConvention.Cdecl)]
public static extern unsafe int LClientStartDemo(string host, string port, string oper, string ch, int flag);
[DllImport("LClientDll.dll",EntryPoint="LClientRcvDemo",ExactSpelling=false,CallingConvention=CallingConvention.Cdecl)]
public static extern unsafe int LClientRcvDemo(char *data);
[DllImport("LClientDll.dll",EntryPoint="LClientStop",ExactSpelling=false,CallingConvention=CallingConvention.Cdecl)]
public static extern int LClientStop();
public Form1()
{
InitializeComponent();


}

private void button1_Click(object sender, EventArgs e)
{


int r = LClientStartDemo("127.0.0.1", "7628", "801", "0", 0);



}
LClientRcvDemo(char *data)参数是指针我希望将值传递给一个变量然后进行进一步处理方案可行吗?具体如何操作?
...全文

相关推荐

评论 6
收藏 已收藏
分享
返回顶部
hansyswin
C# 111,130 成员 642,540 内容