文件头加上
#pragma comment(lib,"Netapi32")你少了库文件
#pragma comment(lib,"Netapi32")你少了库文件
解决方案 »
- 不安装Office能否实现导出Excel的功能???
- 【請益】如何將Visio Drawing Control應用在Microsoft Visual C++ 2005開發的程式中?
- vb调用vc的dll问题
- 求助,a.h文件 a.lib文件 a.dll文件,三者有什么联系阿?
- 求助:怎样让一个选中的区域以高亮显示?
- 各位大虾,请问去除对话框标题栏该怎么做?
- 如何让EDIT控件换行显示数据?
- <<<<<关于网络通信方面的几点疑难杂症,请大家讨论讨论>>>>> (有收获后加至高分)
- 讨论::异步,多线程,callback,得分好机会!
- 如何用pdflib打开pdf文件
- 个人意愿和老板意见有偏差,该当如何处理?
- 哪里有讲STL比较详细的书可以下载?谢谢。
再次感谢
再请问:
#pragma comment(linker, "/include:__mySymbol")
做何解释(MSDN上的。)
下面是详细解释
The Force Symbol References (/INCLUDE:symbol) option tells the linker to add a specified symbol to the symbol table. (To find this option in the development environment, click Settings on the Project menu. Then click the Link tab, and click Input in the Category box.) Type a symbol name in the Force Symbol References text box. To specify multiple symbols, type a comma (,), a semicolon (;), or a space between the symbol names. On the command line, specify /INCLUDE:symbol once for each symbol.The linker resolves symbol by adding the object that contains the symbol definition to the program. This feature is useful for including a library object that otherwise would not be linked to the program.Specifying a symbol with this option overrides the removal of that symbol by /OPT:REF.