一个MFC的project,用Use  MFC  in  a  Shared  DLL编译、运行都没问题。  
 
用Use  MFC  in  a  Static  Library编译时出现错误:  
   Compiling...  
   StdAfx.cpp  
   C:\Program  Files\Microsoft  Visual  Studio\VC98\MFC\INCLUDE\afxver_.h(130)  :  fatal  error  C1189:  #error  :    Please  use  the  /MD  switch  for  _AFXDLL  builds  
   Error  executing  cl.exe.  
 
随后在Project  Options:中加入/MD参数,编译OK,但运行的时候弹出‘遇到问题需要关闭。我们对此引起的不便表示抱歉。’的错误窗口。  
 
怎么办?