//在InitInstance()中加了(我想在程序启动的时候根据参数显示不同的窗口)       
   ......
  if(0) 
    CCDlg1  dlg;
  if(1)
    CCDlg2  dlg;
 
  m_pMainWnd = &dlg;
  int nResponse = dlg.DoModal();
 ......//编译时,提示有3个错误
error C2065: 'dlg' : undeclared identifier
error C2440: '=' : cannot convert from 'int *' to 'class CWnd *'
error C2228: left of '.DoModal' must have class/struct/union type谢谢!!!