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

时间:2021-08-19 15:39:23
【文件属性】:
文件名称:c++ 通过 clr 方式 封装 原生 c++ dll , 由c# 对其调用
文件大小:7.72MB
文件格式:ZIP
更新时间:2021-08-19 15:39:23
c# c++ clr 托管类 dll 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,否则很麻烦
【文件预览】:
dll_test_cpp
----dll_test_net()
--------app.ico(1KB)
--------resource.h(91B)
--------app.rc(1KB)
--------dll_test_net.h(864B)
--------ReadMe.txt(872B)
--------dll_test_net.cpp(530B)
--------Stdafx.cpp(139B)
--------dll_test_net.vcproj.DESKTOP-OJS8VVG.bhca.user(3KB)
--------AssemblyInfo.cpp(1KB)
--------dll_test_net.vcproj(9KB)
--------Stdafx.h(135B)
----dll_test_cpp.suo(31KB)
----x64()
--------Debug()
----dll_test_cpp()
--------dll_test_cpp.cpp(393B)
--------dll_test_cpp.vcproj(9KB)
--------stdafx.h(330B)
--------ReadMe.txt(1KB)
--------x64()
--------stdafx.cpp(217B)
--------dll_test_cpp.h(842B)
--------dll_test_cpp.vcproj.DESKTOP-OJS8VVG.bhca.user(3KB)
--------dllmain.cpp(389B)
--------targetver.h(1KB)
----test_net()
--------Program.cs(689B)
--------test_net.csproj(3KB)
--------Properties()
--------obj()
--------bin()
----dll_test_cpp.v12.suo(21KB)
----dll_test_cpp.ncb(22.86MB)
----dll_test_cpp.sln(4KB)

网友评论