C# 调用C++的DLL文件出现问题。尝试读取或写入受保护的内存。这通常指示其他内存已损坏。 c#c++DllDllimport 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 dmailnewclient.ehInformation ehinfo=new dmailnewclient.ehInformation (); ehinfo.ehfilename = "DMail"; ehinfo. = ""; ehinfo.sendAddr = "国调1.自动化"; ehinfo.recvAddrs = new System.Collections.ArrayList(); ehinfo.recvAddrs.Add("国调1.自动化"); ehinfo.recvAddrs.Add("国调2.自动化"); ehinfo.type = "文件"; ehinfo.content = "hello content test"; ehinfo.attachs = new ArrayList(); ehinfo.attachs.Add("attach1.txt"); ehinfo.attachs.Add("attach2.txt"); :vector<std::string> attachsArrayList attachs;这两个不是对等的定义,出错正常的。使用StringBuider或者Intptr试试,不行就再封装一个dll吧。C++里的东西,你不能强求C#和一一对应。 vector<std::string> 可以通过C++.Net再写一个中转的dll,也就是C# -- C++.Net -- C++http://bbs.csdn.net/topics/390748634 Sql递归查询 本人初学,这个换成C#应该如何写呢? string查找問題 网站源码 一个gridview引发的事件的问题(很急) txt 转rtf 问一下,大家在平时开发项目时最常用的开发模式有哪几种? 大家请进 在C#中调用 ping.exe后如何得知返回结果 ? 如何能够改变动态库DLL中的资源文件的内容 关于 PrintDialog wpf 设置属性“System.Windows.FrameworkElement.Height”时引发了异常
ehinfo.ehfilename = "DMail";
ehinfo. = "";
ehinfo.sendAddr = "国调1.自动化";
ehinfo.recvAddrs = new System.Collections.ArrayList();
ehinfo.recvAddrs.Add("国调1.自动化");
ehinfo.recvAddrs.Add("国调2.自动化");
ehinfo.type = "文件";
ehinfo.content = "hello content test";
ehinfo.attachs = new ArrayList();
ehinfo.attachs.Add("attach1.txt");
ehinfo.attachs.Add("attach2.txt");
ArrayList attachs;这两个不是对等的定义,出错正常的。使用StringBuider或者Intptr试试,不行就再封装一个dll吧。
C++里的东西,你不能强求C#和一一对应。
C# -- C++.Net -- C++
http://bbs.csdn.net/topics/390748634