在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
C#调用C++封装好的函数. C++ Dll1.cpp: 1 #define _csharp_string extern "C" __declspec(dllexport) const char* 2 3 _csharp_string func(){ 4 return "Hi,沙奇码"; 5 } C#调用: 1 using System; 2 using System.Text; 3 using System.Runtime.InteropServices; 4 5 namespace ConsoleApp1 6 { 7 class Program 8 { 9 //导入dll 10 [DllImport(@"D:\Dll1.dll"), EntryPoint = "func",
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论