回 帖 发 新 帖 刷新版面

主题:求教错误原因?

int WINAPI _tWinMain (HINSTANCE hinstExe,HINSTANCE hinstPrev, LPTSTR pszCmdLine, int nCmdShow)
{ //E:\MyProjects\HOPESUC\HOPSUC.CPP(294) : error C2601: 'WinMain' : local function definitions are illegal


   
  HWND  hwnd;
  MSG   msg;
  
   
TCHAR szPath[_MAX_DIR];
   
   chWARNIFUNICODEUNDERWIN95();
  /* INT_PTR DialogBox(
  HINSTANCE hInstance,  // handle to module
  LPCTSTR lpTemplate,   // dialog box template
  HWND hWndParent,      // handle to owner window
  DLGPROC lpDialogFunc  // dialog box procedure
);
  */
DialogBox(hwnd, MAKEINTRESOURCE(IDD_HOPSUC),NULL, Dlg_Proc);



         
     
return (0);




//////////////////////// End Of File ////////////////////////
}//E:\MyProjects\HOPESUC\HOPSUC.CPP(324) : fatal error C1004: unexpected end of file found

回复列表 (共1个回复)

沙发

#defien UNICODE

可能是这个问题. 试一下在 #include 前加上 #define UNICODE

我来回复

您尚未登录,请登录后再回复。点此登录或注册