如何用C#调用VC++? 是这样的:如何用C#调用C++ Lib文件? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 用托管C++(VC++.NET)把那个lib里你想要的东西做成一个DLL,然后C#里添加引用或者,用VC++或其他C++的工具把那个LIB里的东西做成一个DLL(win32)然后象这样:[DllImport("KERNEL32.DLL", EntryPoint="MoveFileW", SetLastError=true,CharSet=CharSet.Unicode, ExactSpelling=true,CallingConvention=CallingConvention.StdCall)]public static extern bool MoveFile(String src, String dst);System.Runtime.InteropServices.DllImportAttributewww.pinvoke.net backgroundworker与Timer联合使用问题 泛型方法返回值问题 关于一个线程问题,应该很多人会把,大家帮忙,100分。 C#调用的PING命令行的程序 有点问题,望高手解决 lock()问题 如何调用word里的打印程序? 水晶报表显示格式的问题? 怎么才能按回车键时让某个该单元格的内容为选中状态 请教一个小问题,谢谢。 救急! 水晶报表的发布 MDI窗體問題,急!!!
或者,用VC++或其他C++的工具把那个LIB里的东西做成一个DLL(win32)
然后象这样:
[DllImport("KERNEL32.DLL", EntryPoint="MoveFileW", SetLastError=true,
CharSet=CharSet.Unicode, ExactSpelling=true,
CallingConvention=CallingConvention.StdCall)]
public static extern bool MoveFile(String src, String dst);System.Runtime.InteropServices.DllImportAttributewww.pinvoke.net