也就是静态库lib文件?这个pragma comment(lib....)应该和动态库没有关系吧?
------------------------MSDN提供的信息对我的问题似乎没有什么帮助啊:
libPlaces a library-search record in the object file. This comment type must be accompanied by a commentstring parameter containing the name (and possibly the path) of the library that you want the linker to search. Since the library name precedes the default library-search records in the object file, the linker searches for this library just as if you had named it on the command line. You can place multiple library-search records in the same source file; each record appears in the object file in the same order in which it is encountered in the source file.还请高人一定解答一下,谢谢了!
------------------------MSDN提供的信息对我的问题似乎没有什么帮助啊:
libPlaces a library-search record in the object file. This comment type must be accompanied by a commentstring parameter containing the name (and possibly the path) of the library that you want the linker to search. Since the library name precedes the default library-search records in the object file, the linker searches for this library just as if you had named it on the command line. You can place multiple library-search records in the same source file; each record appears in the object file in the same order in which it is encountered in the source file.还请高人一定解答一下,谢谢了!
解决方案 »
- release 版的编译错误
- 请教OPENGL里的glTranslatef函数
- 关于双栈主机setsockopt设置SO_EXCLUSIVEADDRUSE的问题
- MFC编写的activeX控件如何改变文字背景颜色问题、、、、、、、、
- 对方只发了一个1024字节的内容。
- 我从CPropertySheet继承了一个累CMySheet,可是通过DoModal显示不出来,想搞成非模态的,Create也总是失败,是怎么回事?我的Page是在OnI
- 有什么好的串口监视工具?
- realese 板的源代码有什么办法单步调试?
- Asf文件数据流的格式, 谁知道或能提供点信息, 急啊~~~(zx_sanjin)
- 请教一个极其简单的问题,如何用a[1,2]的形式使用二维数组?
- unsigned char *怎么转化为const VARIANT&
- 请问如何使用chtmlview类呢?
显示加载不就是LoadLibrary动态加载吗? 我怎么越听越晕了啊... ...
谢谢
你这么理解也可以。但是这个是从DLL的使用者的角度看的。
从DLL的角度看,分为静态链接和动态链接,静态链接就是说DLL作为加载者程序一部分编译进加载的程序中,加载程序运行的时候就不用DLL了,因为DLL已经在加载者程序里面了。动态链接就是以DLL的方式提供,加载程序启动的时候需要加载DLL。