主题:求教错误原因?
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
{ //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