c++ 通过 clr 方式 封装 原生 c++ dll , 由c# 对其调用

上传者: no_abomb | 上传时间: 2021-08-20 01:26:05 | 文件大小: 7.72MB | 文件类型: ZIP
c++ 通过 clr 方式 封装 原生 c++ dll , 由c# 对其调用 通过创建c++ clr项目dll_test_net,其内部封装纯c++ dll (dll_test_cpp),然后c#项目 test_net调用dll_test_net。 所有项目由vs2008创建。 防入坑提示: clr 项目 与 c# 项目 的 framework 必须一致 c++ dll 与 clr dll c++ 必须为x64 c++ dll 尽量不要包含mfc,否则很麻烦

文件下载

资源详情

[{"title":"( 47 个子文件 7.72MB ) c++ 通过 clr 方式 封装 原生 c++ dll , 由c# 对其调用","children":[{"title":"dll_test_cpp","children":[{"title":"dll_test_net","children":[{"title":"app.ico <span style='color:#111;'> 1.05KB </span>","children":null,"spread":false},{"title":"resource.h <span style='color:#111;'> 91B </span>","children":null,"spread":false},{"title":"app.rc <span style='color:#111;'> 1.22KB </span>","children":null,"spread":false},{"title":"dll_test_net.h <span style='color:#111;'> 864B </span>","children":null,"spread":false},{"title":"ReadMe.txt <span style='color:#111;'> 872B </span>","children":null,"spread":false},{"title":"dll_test_net.cpp <span style='color:#111;'> 530B </span>","children":null,"spread":false},{"title":"Stdafx.cpp <span style='color:#111;'> 139B </span>","children":null,"spread":false},{"title":"dll_test_net.vcproj.DESKTOP-OJS8VVG.bhca.user <span style='color:#111;'> 2.54KB </span>","children":null,"spread":false},{"title":"AssemblyInfo.cpp <span style='color:#111;'> 1.14KB </span>","children":null,"spread":false},{"title":"dll_test_net.vcproj <span style='color:#111;'> 8.63KB </span>","children":null,"spread":false},{"title":"Stdafx.h <span style='color:#111;'> 135B </span>","children":null,"spread":false}],"spread":false},{"title":"dll_test_cpp.suo <span style='color:#111;'> 30.50KB </span>","children":null,"spread":false},{"title":"x64","children":[{"title":"Debug","children":[{"title":"dll_test_net.dll <span style='color:#111;'> 75.50KB </span>","children":null,"spread":false},{"title":"dll_test_net.pdb <span style='color:#111;'> 571.00KB </span>","children":null,"spread":false},{"title":"dll_test_cpp.lib <span style='color:#111;'> 3.50KB </span>","children":null,"spread":false},{"title":"dll_test_cpp.ilk <span style='color:#111;'> 297.41KB </span>","children":null,"spread":false},{"title":"dll_test_net.ilk <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"dll_test_cpp.pdb <span style='color:#111;'> 915.00KB </span>","children":null,"spread":false},{"title":"dll_test_cpp.exp <span style='color:#111;'> 1.67KB </span>","children":null,"spread":false},{"title":"dll_test_cpp.dll <span style='color:#111;'> 38.00KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"dll_test_cpp","children":[{"title":"dll_test_cpp.cpp <span style='color:#111;'> 393B </span>","children":null,"spread":false},{"title":"dll_test_cpp.vcproj <span style='color:#111;'> 8.66KB </span>","children":null,"spread":false},{"title":"stdafx.h <span style='color:#111;'> 330B </span>","children":null,"spread":false},{"title":"ReadMe.txt <span style='color:#111;'> 1.16KB </span>","children":null,"spread":false},{"title":"x64","children":null,"spread":false},{"title":"stdafx.cpp <span style='color:#111;'> 217B </span>","children":null,"spread":false},{"title":"dll_test_cpp.h <span style='color:#111;'> 842B </span>","children":null,"spread":false},{"title":"dll_test_cpp.vcproj.DESKTOP-OJS8VVG.bhca.user <span style='color:#111;'> 2.54KB </span>","children":null,"spread":false},{"title":"dllmain.cpp <span style='color:#111;'> 389B </span>","children":null,"spread":false},{"title":"targetver.h <span style='color:#111;'> 1.00KB </span>","children":null,"spread":false}],"spread":true},{"title":"test_net","children":[{"title":"Program.cs <span style='color:#111;'> 689B </span>","children":null,"spread":false},{"title":"test_net.csproj <span style='color:#111;'> 2.66KB </span>","children":null,"spread":false},{"title":"Properties","children":[{"title":"AssemblyInfo.cs <span style='color:#111;'> 1.32KB </span>","children":null,"spread":false}],"spread":true},{"title":"obj","children":[{"title":"Debug","children":[{"title":"test_net.csproj.FileListAbsolute.txt <span style='color:#111;'> 404B </span>","children":null,"spread":false},{"title":"TempPE","children":null,"spread":false},{"title":"test_net.exe <span style='color:#111;'> 4.50KB </span>","children":null,"spread":false},{"title":"test_net.pdb <span style='color:#111;'> 11.50KB </span>","children":null,"spread":false}],"spread":true},{"title":"Release","children":[{"title":"test_net.csproj.FileListAbsolute.txt <span style='color:#111;'> 418B </span>","children":null,"spread":false},{"title":"TempPE","children":null,"spread":false},{"title":"test_net.exe <span style='color:#111;'> 4.50KB </span>","children":null,"spread":false},{"title":"test_net.pdb <span style='color:#111;'> 11.50KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"bin","children":[{"title":"Debug","children":[{"title":"test_net.vshost.exe <span style='color:#111;'> 13.99KB </span>","children":null,"spread":false},{"title":"dll_test_net.dll <span style='color:#111;'> 75.50KB </span>","children":null,"spread":false},{"title":"dll_test_net.pdb <span style='color:#111;'> 579.00KB </span>","children":null,"spread":false},{"title":"test_net.exe <span style='color:#111;'> 4.50KB </span>","children":null,"spread":false},{"title":"test_net.pdb <span style='color:#111;'> 11.50KB </span>","children":null,"spread":false},{"title":"dll_test_cpp.dll <span style='color:#111;'> 38.00KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"dll_test_cpp.v12.suo <span style='color:#111;'> 20.50KB </span>","children":null,"spread":false},{"title":"dll_test_cpp.ncb <span style='color:#111;'> 22.86MB </span>","children":null,"spread":false},{"title":"dll_test_cpp.sln <span style='color:#111;'> 4.28KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明