Dll调用与嵌套调用

上传者: vince043 | 上传时间: 2019-12-21 21:32:29 | 文件大小: 1.75MB | 文件类型: rar
Dll调用与嵌套调用 一.Win32动态链接库   1.制作的步骤:   (1)新建WIN32 Dynamic-link Library工程,工程名为MyDll,选择A simple DLL project类型。   (2)MyDll.h的内容如下: 以下是引用片段: extern "C" _declspec(dllexport) int sum(int a,int b);//本文所有的例子只有一个sum即加法函数。 2.使用方法:   (1).隐式调用法: 将MyDll.lib和MyDll.h拷贝到需要应用该DLL的工程的目录下,将MyDll.dll拷贝到产生的应用程序的目录下,并在需要应用该DLL中的函数的CPP文件中添加如下几行: 3.A_Dll嵌套调用B_Dll,跟exe调用A_Dll是同样的道理,不过注意,要把生成的两个.Dll文件copy到 应用程序的debug目录下

文件下载

资源详情

[{"title":"( 71 个子文件 1.75MB ) Dll调用与嵌套调用","children":[{"title":"Dll调用与嵌套调用","children":[{"title":"MyDll2","children":[{"title":"StdAfx.cpp <span style='color:#111;'> 293B </span>","children":null,"spread":false},{"title":"MyDll2.ncb <span style='color:#111;'> 33.00KB </span>","children":null,"spread":false},{"title":"Debug","children":[{"title":"MyDll2.ilk <span style='color:#111;'> 259.37KB </span>","children":null,"spread":false},{"title":"vc60.pdb <span style='color:#111;'> 172.00KB </span>","children":null,"spread":false},{"title":"vc60.idb <span style='color:#111;'> 81.00KB </span>","children":null,"spread":false},{"title":"MyDll2.pch <span style='color:#111;'> 1.83MB </span>","children":null,"spread":false},{"title":"MyDll2.exp <span style='color:#111;'> 532B </span>","children":null,"spread":false},{"title":"MyDll2.pdb <span style='color:#111;'> 633.00KB </span>","children":null,"spread":false},{"title":"MyDll2.lib <span style='color:#111;'> 1.85KB </span>","children":null,"spread":false},{"title":"MyDll2.dll <span style='color:#111;'> 216.05KB </span>","children":null,"spread":false},{"title":"StdAfx.obj <span style='color:#111;'> 53.51KB </span>","children":null,"spread":false},{"title":"MyDll2.obj <span style='color:#111;'> 2.15KB </span>","children":null,"spread":false}],"spread":true},{"title":"MyDll2.h <span style='color:#111;'> 51B </span>","children":null,"spread":false},{"title":"ReadMe.txt <span style='color:#111;'> 1.58KB </span>","children":null,"spread":false},{"title":"MyDll2.cpp <span style='color:#111;'> 354B </span>","children":null,"spread":false},{"title":"StdAfx.h <span style='color:#111;'> 802B </span>","children":null,"spread":false},{"title":"MyDll2.dsp <span style='color:#111;'> 4.25KB </span>","children":null,"spread":false},{"title":"MyDll2.plg <span style='color:#111;'> 1.15KB </span>","children":null,"spread":false},{"title":"MyDll2.dsw <span style='color:#111;'> 518B </span>","children":null,"spread":false},{"title":"MyDll2.opt <span style='color:#111;'> 47.50KB </span>","children":null,"spread":false}],"spread":false},{"title":"mytestdll","children":[{"title":"MyDll.h <span style='color:#111;'> 51B </span>","children":null,"spread":false},{"title":"Mydll.lib <span style='color:#111;'> 1.83KB </span>","children":null,"spread":false},{"title":"mytestdll.h <span style='color:#111;'> 1.36KB </span>","children":null,"spread":false},{"title":"mytestdll.opt <span style='color:#111;'> 47.50KB </span>","children":null,"spread":false},{"title":"StdAfx.cpp <span style='color:#111;'> 211B </span>","children":null,"spread":false},{"title":"mytestdll.clw <span style='color:#111;'> 1.95KB </span>","children":null,"spread":false},{"title":"mytestdll.dsw <span style='color:#111;'> 524B </span>","children":null,"spread":false},{"title":"mytestdllDoc.h <span style='color:#111;'> 1.47KB </span>","children":null,"spread":false},{"title":"MainFrm.h <span style='color:#111;'> 1.54KB </span>","children":null,"spread":false},{"title":"mytestdll.plg <span style='color:#111;'> 252B </span>","children":null,"spread":false},{"title":"mytestdll.dsp <span style='color:#111;'> 4.51KB </span>","children":null,"spread":false},{"title":"Debug","children":[{"title":"MyDll2.dll <span style='color:#111;'> 216.05KB </span>","children":null,"spread":false},{"title":"Mydll.dll <span style='color:#111;'> 244.04KB </span>","children":null,"spread":false}],"spread":true},{"title":"mytestdll.cpp <span style='color:#111;'> 4.16KB </span>","children":null,"spread":false},{"title":"ReadMe.txt <span style='color:#111;'> 4.28KB </span>","children":null,"spread":false},{"title":"StdAfx.h <span style='color:#111;'> 1.08KB </span>","children":null,"spread":false},{"title":"mytestdllView.h <span style='color:#111;'> 1.89KB </span>","children":null,"spread":false},{"title":"MainFrm.cpp <span style='color:#111;'> 2.45KB </span>","children":null,"spread":false},{"title":"Resource.h <span style='color:#111;'> 497B </span>","children":null,"spread":false},{"title":"mytestdllView.cpp <span style='color:#111;'> 2.71KB </span>","children":null,"spread":false},{"title":"mytestdll.ncb <span style='color:#111;'> 49.00KB </span>","children":null,"spread":false},{"title":"mytestdll.rc <span style='color:#111;'> 10.35KB </span>","children":null,"spread":false},{"title":"res","children":[{"title":"mytestdllDoc.ico <span style='color:#111;'> 1.05KB </span>","children":null,"spread":false},{"title":"mytestdll.rc2 <span style='color:#111;'> 401B </span>","children":null,"spread":false},{"title":"mytestdll.ico <span style='color:#111;'> 1.05KB </span>","children":null,"spread":false},{"title":"Toolbar.bmp <span style='color:#111;'> 1.05KB </span>","children":null,"spread":false}],"spread":false},{"title":"mytestdllDoc.cpp <span style='color:#111;'> 1.76KB </span>","children":null,"spread":false}],"spread":false},{"title":"Mydll","children":[{"title":"MyDll.h <span style='color:#111;'> 51B </span>","children":null,"spread":false},{"title":"Mydll.opt <span style='color:#111;'> 47.50KB </span>","children":null,"spread":false},{"title":"StdAfx.cpp <span style='color:#111;'> 292B </span>","children":null,"spread":false},{"title":"Mydll.cpp <span style='color:#111;'> 415B </span>","children":null,"spread":false},{"title":"Debug","children":[{"title":"Mydll.lib <span style='color:#111;'> 1.83KB </span>","children":null,"spread":false},{"title":"vc60.pdb <span style='color:#111;'> 188.00KB </span>","children":null,"spread":false},{"title":"Mydll.exp <span style='color:#111;'> 527B </span>","children":null,"spread":false},{"title":"Mydll.obj <span style='color:#111;'> 2.67KB </span>","children":null,"spread":false},{"title":"vc60.idb <span style='color:#111;'> 89.00KB </span>","children":null,"spread":false},{"title":"Mydll.ilk <span style='color:#111;'> 318.59KB </span>","children":null,"spread":false},{"title":"Mydll.pch <span style='color:#111;'> 1.89MB </span>","children":null,"spread":false},{"title":"MyDll2.dll <span style='color:#111;'> 216.05KB </span>","children":null,"spread":false},{"title":"StdAfx.obj <span style='color:#111;'> 53.52KB </span>","children":null,"spread":false},{"title":"Mydll.dll <span style='color:#111;'> 244.04KB </span>","children":null,"spread":false},{"title":"Mydll.pdb <span style='color:#111;'> 737.00KB </span>","children":null,"spread":false}],"spread":false},{"title":"Mydll.ncb <span style='color:#111;'> 33.00KB </span>","children":null,"spread":false},{"title":"MyDll2.h <span style='color:#111;'> 51B </span>","children":null,"spread":false},{"title":"ReadMe.txt <span style='color:#111;'> 1.57KB </span>","children":null,"spread":false},{"title":"StdAfx.h <span style='color:#111;'> 856B </span>","children":null,"spread":false},{"title":"MyDll2.lib <span style='color:#111;'> 1.85KB </span>","children":null,"spread":false},{"title":"Mydll.plg <span style='color:#111;'> 244B </span>","children":null,"spread":false},{"title":"Mydll.dsw <span style='color:#111;'> 516B </span>","children":null,"spread":false},{"title":"Mydll.dsp <span style='color:#111;'> 4.24KB </span>","children":null,"spread":false}],"spread":false},{"title":"Dll应用.txt <span style='color:#111;'> 1.84KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

  • benben1376 :
    我想要的是DLL嵌套调用,内嵌的DLL支持公共语言运行时支持clr ,可惜这种嵌套不行
    2015-01-23
  • fishyang1989 :
    看了下,解决了我的问题,其他的不作评价
    2014-11-14
  • javaboy2049 :
    可以实现我要的功能。
    2014-09-12
  • godsmile :
    不是内嵌方式,在实际过程中受限太多(路径,重名等),此方法不佳!
    2013-10-07

免责申明

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