Csharp调用c++的DLL类库

上传者: jshayzf | 上传时间: 2021-08-31 21:52:12 | 文件大小: 10.33MB | 文件类型: RAR
共含有2个项目,一个是c++写的DLL类库,另一个是C#调用第一个项目生成的DLL类库。 另外可以参考: http://blog.csdn.net/jshayzf/article/details/23608705 有说明,有实例,更好懂,代码下载后用VS2010就可以运行!

文件下载

资源详情

[{"title":"( 93 个子文件 10.33MB ) Csharp调用c++的DLL类库","children":[{"title":"Csharp_Call_Cpp","children":[{"title":"CsharpCallCpp","children":[{"title":"CsharpCallCpp.suo <span style='color:#111;'> 29.00KB </span>","children":null,"spread":false},{"title":"CsharpCallCpp.sln <span style='color:#111;'> 881B </span>","children":null,"spread":false},{"title":"CsharpCallCpp","children":[{"title":"bin","children":[{"title":"Release","children":[{"title":"CsharpCallCpp.vshost.exe <span style='color:#111;'> 11.33KB </span>","children":null,"spread":false},{"title":"CsharpCallCpp.exe <span style='color:#111;'> 8.00KB </span>","children":null,"spread":false},{"title":"CsharpCallCpp.pdb <span style='color:#111;'> 19.50KB </span>","children":null,"spread":false},{"title":"CsharpCallCpp.vshost.exe.manifest <span style='color:#111;'> 490B </span>","children":null,"spread":false}],"spread":true},{"title":"Debug","children":[{"title":"CsharpCallCpp.vshost.exe <span style='color:#111;'> 11.33KB </span>","children":null,"spread":false},{"title":"CsharpCallCpp.exe <span style='color:#111;'> 8.50KB </span>","children":null,"spread":false},{"title":"MyDll.dll <span style='color:#111;'> 28.00KB </span>","children":null,"spread":false},{"title":"CsharpCallCpp.pdb <span style='color:#111;'> 23.50KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"Form1.Designer.cs <span style='color:#111;'> 2.06KB </span>","children":null,"spread":false},{"title":"Program.cs <span style='color:#111;'> 520B </span>","children":null,"spread":false},{"title":"obj","children":[{"title":"x86","children":[{"title":"Release","children":[{"title":"GenerateResource.write.1.tlog <span style='color:#111;'> 914B </span>","children":null,"spread":false},{"title":"CsharpCallCpp.exe <span style='color:#111;'> 8.00KB </span>","children":null,"spread":false},{"title":"CsharpCallCpp.csproj.FileListAbsolute.txt <span style='color:#111;'> 1.10KB </span>","children":null,"spread":false},{"title":"DesignTimeResolveAssemblyReferencesInput.cache <span style='color:#111;'> 6.28KB </span>","children":null,"spread":false},{"title":"GenerateResource.read.1.tlog <span style='color:#111;'> 392B </span>","children":null,"spread":false},{"title":"TempPE","children":null,"spread":false},{"title":"CsharpCallCpp.Properties.Resources.resources <span style='color:#111;'> 180B </span>","children":null,"spread":false},{"title":"CsharpCallCpp.Form1.resources <span style='color:#111;'> 180B </span>","children":null,"spread":false},{"title":"CsharpCallCpp.pdb <span style='color:#111;'> 19.50KB </span>","children":null,"spread":false}],"spread":true},{"title":"Debug","children":[{"title":"GenerateResource.write.1.tlog <span style='color:#111;'> 906B </span>","children":null,"spread":false},{"title":"CsharpCallCpp.exe <span style='color:#111;'> 8.50KB </span>","children":null,"spread":false},{"title":"CsharpCallCpp.csproj.FileListAbsolute.txt <span style='color:#111;'> 1.08KB </span>","children":null,"spread":false},{"title":"DesignTimeResolveAssemblyReferencesInput.cache <span style='color:#111;'> 6.28KB </span>","children":null,"spread":false},{"title":"DesignTimeResolveAssemblyReferences.cache <span style='color:#111;'> 2.11KB </span>","children":null,"spread":false},{"title":"GenerateResource.read.1.tlog <span style='color:#111;'> 392B </span>","children":null,"spread":false},{"title":"TempPE","children":null,"spread":false},{"title":"CsharpCallCpp.Properties.Resources.resources <span style='color:#111;'> 180B </span>","children":null,"spread":false},{"title":"CsharpCallCpp.Form1.resources <span style='color:#111;'> 180B </span>","children":null,"spread":false},{"title":"CsharpCallCpp.pdb <span style='color:#111;'> 23.50KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"CsharpCallCpp.csproj <span style='color:#111;'> 3.60KB </span>","children":null,"spread":false},{"title":"Form1.cs <span style='color:#111;'> 1.26KB </span>","children":null,"spread":false},{"title":"Form1.resx <span style='color:#111;'> 5.68KB </span>","children":null,"spread":false},{"title":"Properties","children":[{"title":"Resources.resx <span style='color:#111;'> 5.48KB </span>","children":null,"spread":false},{"title":"Settings.settings <span style='color:#111;'> 249B </span>","children":null,"spread":false},{"title":"AssemblyInfo.cs <span style='color:#111;'> 1.40KB </span>","children":null,"spread":false},{"title":"Settings.Designer.cs <span style='color:#111;'> 1.07KB </span>","children":null,"spread":false},{"title":"Resources.Designer.cs <span style='color:#111;'> 2.79KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"MyDll","children":[{"title":"MyDll.sdf <span style='color:#111;'> 28.96MB </span>","children":null,"spread":false},{"title":"MyDll.sln <span style='color:#111;'> 882B </span>","children":null,"spread":false},{"title":"MyDll.suo <span style='color:#111;'> 14.00KB </span>","children":null,"spread":false},{"title":"MyDll","children":[{"title":"stdafx.cpp <span style='color:#111;'> 292B </span>","children":null,"spread":false},{"title":"testdll - 副本.h <span style='color:#111;'> 333B </span>","children":null,"spread":false},{"title":"testdll - 副本.cpp <span style='color:#111;'> 176B </span>","children":null,"spread":false},{"title":"MyDll.cpp <span style='color:#111;'> 103B </span>","children":null,"spread":false},{"title":"stdafx.h <span style='color:#111;'> 419B </span>","children":null,"spread":false},{"title":"mydll.def <span style='color:#111;'> 46B </span>","children":null,"spread":false},{"title":"MyDll.vcxproj.filters <span style='color:#111;'> 1.65KB </span>","children":null,"spread":false},{"title":"dllmain.cpp <span style='color:#111;'> 410B </span>","children":null,"spread":false},{"title":"targetver.h <span style='color:#111;'> 314B </span>","children":null,"spread":false},{"title":"testdll.cpp <span style='color:#111;'> 484B </span>","children":null,"spread":false},{"title":"MyDll.vcxproj.user <span style='color:#111;'> 143B </span>","children":null,"spread":false},{"title":"testdll.h <span style='color:#111;'> 338B </span>","children":null,"spread":false},{"title":"Debug","children":[{"title":"vc100.idb <span style='color:#111;'> 251.00KB </span>","children":null,"spread":false},{"title":"dllmain.obj <span style='color:#111;'> 9.33KB </span>","children":null,"spread":false},{"title":"link.371000.write.1.tlog <span style='color:#111;'> 2B </span>","children":null,"spread":false},{"title":"MyDll.log <span style='color:#111;'> 3.76KB </span>","children":null,"spread":false},{"title":"CL.write.1.tlog <span style='color:#111;'> 2.25KB </span>","children":null,"spread":false},{"title":"CL.read.1.tlog <span style='color:#111;'> 15.89KB </span>","children":null,"spread":false},{"title":"mt.read.1.tlog <span style='color:#111;'> 390B </span>","children":null,"spread":false},{"title":"MyDll.Build.CppClean.log <span style='color:#111;'> 3.10KB </span>","children":null,"spread":false},{"title":"rc.write.1.tlog <span style='color:#111;'> 370B </span>","children":null,"spread":false},{"title":"MyDll.pch <span style='color:#111;'> 4.00MB </span>","children":null,"spread":false},{"title":"MyDll_manifest.rc <span style='color:#111;'> 202B </span>","children":null,"spread":false},{"title":"stdafx.obj <span style='color:#111;'> 121.39KB </span>","children":null,"spread":false},{"title":"rc.read.1.tlog <span style='color:#111;'> 362B </span>","children":null,"spread":false},{"title":"MyDll.dll.intermediate.manifest <span style='color:#111;'> 381B </span>","children":null,"spread":false},{"title":"MyDll.obj <span style='color:#111;'> 1.96KB </span>","children":null,"spread":false},{"title":"mt.command.1.tlog <span style='color:#111;'> 412B </span>","children":null,"spread":false},{"title":"cl.command.1.tlog <span style='color:#111;'> 3.39KB </span>","children":null,"spread":false},{"title":"link-cvtres.read.1.tlog <span style='color:#111;'> 2B </span>","children":null,"spread":false},{"title":"MyDll.dll.embed.manifest <span style='color:#111;'> 406B </span>","children":null,"spread":false},{"title":"MyDll.lastbuildstate <span style='color:#111;'> 94B </span>","children":null,"spread":false},{"title":"link.write.1.tlog <span style='color:#111;'> 1.42KB </span>","children":null,"spread":false},{"title":"MyDll.dll.embed.manifest.res <span style='color:#111;'> 472B </span>","children":null,"spread":false},{"title":"testdll.obj <span style='color:#111;'> 5.75KB </span>","children":null,"spread":false},{"title":"link.371000-cvtres.write.1.tlog <span style='color:#111;'> 2B </span>","children":null,"spread":false},{"title":"link-cvtres.write.1.tlog <span style='color:#111;'> 2B </span>","children":null,"spread":false},{"title":"link.371000-cvtres.read.1.tlog <span style='color:#111;'> 2B </span>","children":null,"spread":false},{"title":"link.command.1.tlog <span style='color:#111;'> 2.24KB </span>","children":null,"spread":false},{"title":"rc.command.1.tlog <span style='color:#111;'> 588B </span>","children":null,"spread":false},{"title":"link.read.1.tlog <span style='color:#111;'> 4.85KB </span>","children":null,"spread":false},{"title":"link.371000.read.1.tlog <span style='color:#111;'> 2B </span>","children":null,"spread":false},{"title":"MyDll.write.1.tlog <span style='color:#111;'> 395B </span>","children":null,"spread":false},{"title":"mt.write.1.tlog <span style='color:#111;'> 390B </span>","children":null,"spread":false},{"title":"vc100.pdb <span style='color:#111;'> 388.00KB </span>","children":null,"spread":false}],"spread":false},{"title":"MyDll.vcxproj <span style='color:#111;'> 5.03KB </span>","children":null,"spread":false},{"title":"ReadMe.txt <span style='color:#111;'> 2.10KB </span>","children":null,"spread":false}],"spread":false},{"title":"ipch","children":[{"title":"mydll-17cb0585","children":[{"title":"mydll-5f76162e.ipch <span style='color:#111;'> 15.31MB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"Debug","children":[{"title":"MyDll.pdb <span style='color:#111;'> 771.00KB </span>","children":null,"spread":false},{"title":"MyDll.lib <span style='color:#111;'> 1.81KB </span>","children":null,"spread":false},{"title":"MyDll.exp <span style='color:#111;'> 973B </span>","children":null,"spread":false},{"title":"MyDll.dll <span style='color:#111;'> 28.00KB </span>","children":null,"spread":false},{"title":"MyDll.ilk <span style='color:#111;'> 273.71KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}]

评论信息

  • icesnow110 :
    不错的例子,感谢分享。 好像有一种符合rc标准的c++类可以直接被csharp调用,有机会试一试。
    2017-08-08
  • qq_28161163 :
    资源可以,不过调用dll的工程会报错
    2017-06-29
  • qq_31461977 :
    还可以,例子比较好
    2016-01-26

免责申明

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