文件头加上 
#pragma comment(lib,"Netapi32")你少了库文件

解决方案 »

  1.   

    Kevin_qing:
       再次感谢
       再请问:
       #pragma comment(linker, "/include:__mySymbol")
       做何解释(MSDN上的。)
      

  2.   

    是加到Link上面的参数
    下面是详细解释
    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.