freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內容

windows程序設計實驗報告(編輯修改稿)

2025-04-09 07:44 本頁面
 

【文章內容簡介】 d ,新建成員函數(shù): TCHAR * GetErrorInformation::GetErrorString() 三,實驗核心代碼: 1,類 class GetErrorInformation 成員函數(shù)代碼: TCHAR * GetErrorInformation::GetErrorString() { // Get the error code39。s textual description BOOL fOk = FormatMessage( FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_ALLOCATE_BUFFER|FORMAT_MESSAGE_MAX_WIDTH _MASK, NULL, m_iErrorCode, MAKELANGID(LANG_CHINESE, UBLANG_ENGLISH_US), (PTSTR) amp。m_hlocal, 0, NULL)。 if (!fOk) { // Is it a workrelated error? HMODULE hDll = LoadLibraryEx(TEXT(), NULL, DONT_RESOLVE_DLL_REFERENCES)。 if (hDll != NULL) { FormatMessage( FORMAT_MESSAGE_FROM_HMODULE | FORMAT_MESSAGE_FROM_SYSTEM|FORMAT_MESSAGE_MAX_WIDTH_MA SK, hDll, m_iErrorCode, MAKELANGID(LANG_CHINESE, SUBLANG_ENGLISH_US), (PTSTR) amp。m_hlocal, 0, NULL)。 FreeLibrary(hDll)。 } } if (m_hlocal!=NULL) { m_pcErrorInformation = (char*)m_hlocal。 } else { m_pcErrorInformation = (TCHAR *)malloc(60)。 TCHAR *charError = _TEXT(你所查找的錯誤代碼不存在 )。 strcpy(m_pcErrorInformation,charError)。 } return m_pcErrorInformation。 } 2,查詢函數(shù): void CDlgErrorDlg::OnButtonLookup() { // TODO: Add your control notification handler code here int errorCode。 GetErrorInformation gei。 errorCode = GetDlgItemInt(IDC_EDIT_ERROR_CODE)。 (errorCode)。 SetDlgItemText(IDC_EDIT_DISPLAY,())。 } 四,實驗結果: 實驗二 unicode 實驗 一,實驗目的 通過對 unicode 的操作理解數(shù)據(jù)編碼; 熟悉 unicode 的各種運算; 了解 unicode 和 ASCII 的區(qū)別。 二,實驗過程 1,新建 win32 控制臺程序,命名 Uchar。 2,建立空工程。 3,添加類 Uchar 的聲明: class UChar { friend ostream amp。operator(ostream amp。os,UChar amp。uc) { osendl。 osendl。 return os。 } private: LPTSTR m_pUChar。 UINT m_Length。 public: UChar()。 UChar(const TCHAR *pChar)。 UCharamp。 operator+(UChar uchar2)。 UCharamp。 operator=(const TCHAR * pStr2)。 UCharamp。 operator=(UChar uchar2)。 BOOL operator(UChar uchar2)。 UINT Length()。 virtual ~UChar()。 protected: private: }。 4,實現(xiàn) unicode 入口函數(shù) 5,實現(xiàn)各個函數(shù)。 三,實驗核心代碼 1, Uchar 類成員 函數(shù)的實現(xiàn): UChar::UChar() { m_pUChar = NULL。 m_Length = 0。 } UChar::UChar(const TCHAR *pChar) { int iCLen。 iCLen = lstrlen(pChar)+sizeof(TCHAR)。 m_Length = iCLensizeof(TCHAR)。 m_pUChar = (TCHAR *)malloc(iCLen*sizeof(TCHAR))。 lstrcpy(m_pUChar,pChar)。
點擊復制文檔內容
教學課件相關推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號-1