现在的位置: 首页 > 综合 > 正文

摘抄

2011年01月17日 ⁄ 综合 ⁄ 共 724字 ⁄ 字号 评论关闭
从msdn里找到的  
   
  To   convert   the   managed   DLL   to   mixed   mode    
   
  1.Link   with   /NOENTRY.   In   Solution   Explorer,   right-click   the   project   node   and   click   Properties.   In   the   project's   Property   Pages   dialog   box,   click   Linker,   and   then   click   Command   Line.   Add   this   switch   to   the   Additional   Options   field.    
   
  2.Link   msvcrt.lib.   In   the   project's   Property   Pages   dialog   box,   click   Linker,   and   then   click   Input.   Add   msvcrt.lib   to   the   Additional   Dependencies   property.    
   
  3.Remove   nochkclr.obj.   On   the   Input   page   (same   page   as   previous   step),   remove   nochkclr.obj   from   the   Additional   Dependencies   property.    
   
  4.Link   in   the   CRT.   On   the   Input   page   (same   page   as   previous   step),   add   __DllMainCRTStartup@12   to   the   Force   Symbol   References   property.

抱歉!评论已关闭.