【正文】
!”,” ShellExecute Error”, MB_OK | MB_ICONEXCLAMATION 。 default: if ExecStatus 32 MessageBox “Problem with executing of ”,” ShellExecute Error”, MB_OK | MB_ICONEXCLAMATION 。 //查看日志內(nèi)容 void CConfigurationPage:: OnClear thr 。 第 5 章 系統(tǒng)測試 系統(tǒng)可能出現(xiàn)的問題與不足 經(jīng)過幾次的軟件測試發(fā)現(xiàn)系統(tǒng)存在著一些不足之處。 2 當(dāng)用戶向服務(wù)器上傳文件時(shí)可能會(huì)傳輸中斷,服務(wù)器仍然存在一些不穩(wěn)定的數(shù)據(jù)連接。只要進(jìn)行一些輸入,就能得到某種輸出結(jié)果。 2)白盒測試 在白盒測試(有時(shí)稱為透明盒測試)中,軟件測試員可以訪誤碼程序員的代碼,并通過檢查代碼的線索來協(xié)助測試――可以看到盒了里面。 測試的過程與結(jié)果分析 ? 在編寫程序時(shí)有時(shí)會(huì)遇到運(yùn)行錯(cuò)誤,這是由于有的地方代碼編寫錯(cuò)誤只有改寫一下就可以了。首先用客戶端登陸服務(wù)器,與服務(wù)器建立連接,然后上傳,下載文件,看看服務(wù)器端有什么反應(yīng),但是有時(shí)會(huì)發(fā)現(xiàn)雖然建立了連接,但是文件傳輸有時(shí)會(huì)失敗。如 圖 51 所示。如圖 52 所示。如圖 53 所示。 由于限制了服務(wù)器的端口為 21 所以客戶端只有通過 21才可以登陸服務(wù)器。 雖然畢業(yè)設(shè)計(jì)內(nèi)容繁多,過程繁瑣但我的收獲卻更加豐富。 順利如期的完成本次畢業(yè)設(shè)計(jì)給了我很大的信心,讓我了解專業(yè)知識(shí)的同時(shí)也對(duì)本專業(yè)的發(fā)展前景充滿信心,今后我更會(huì)關(guān)注新,并爭取盡快的掌握這些先進(jìn)的知識(shí),更好的為祖國的四化服務(wù)。re going to use the shell to display a // Choose Directory dialog box for the user. CString strResult 。 if ::SHGetMalloc amp。 char szBuffer[__PATH]。 BROWSEINFO browseInfo。 // set root at Desktop NULL。 lpszTitle。 NULL。 LPITEMIDLIST lpItemIDList。browseInfo ! NULL // Get the path of the selected folder from the item ID list. if ::SHGetPathFromIDList lpItemIDList, szBuffer // At this point, szBuffer contains the path the user chose. if szBuffer[0] 39。 // SHGetPathFromIDList failed, or SHBrowseForFolder failed. AfxMessageBox Failed to get directory, MB_ICONSTOP|MB_OK 。 // We have a path in szBuffer! strResult szBuffer。 else // The thing referred to by lpItemIDList // might not have been a file system object. // For whatever reason, SHGetPathFromIDList didn39。 return strResult。 lpMalloc Release 。 void DoEvents MSG msg。msg,NULL,NULL,NULL,PM_REMOVE TranslateMessage amp。 DispatchMessage amp。 void GetAppDir CStringamp。 TCHAR szDir[__DIR]。 // Get application39。 // Break full path into seperate ponents. _splitpath szFullPath, szDrive, szDir, NULL, NULL 。s drive and path _T %s%s , szDrive, szDir 。 PFNSHGETFOLDERPATHA pSHGetFolderPath NULL。 // Obtain a pointer to the SHGetFolderPathA function if hMod pSHGetFolderPath PFNSHGETFOLDERPATHA GetProcAddress hMod, SHGetFolderPathA 。 HRESULT CreateStartMenuShortcut LPSTR lpszShortcutFile, LPSTR lpszDescription, LPTSTR lpszRelativeFolder HRESULT hr。 TCHAR lpszLink[_PATH]。 pSHGetFolderPath GetFuncPtr_SHGetFolderPathA 。s Start Menu Programs folder if pSHGetFolderPath bFound SUCCEEDED pSHGetFolderPath NULL, CSIDL_PROGRAMS, NULL, 0, lpszLink 。 IPersistFile *ppf NULL。 CoInitialize NULL 。pIShellLink 。ppf 。 hr pIShellLink SetDescription lpszDescription 。 lstrcat lpszLink, lpszRelativeFolder 。 // Create the directory if it does not exist CreateDirectory lpszLink,NULL 。 lstrcat lpszLink, .lnk 。 hr ppf Save pLinkUnicode, TRUE 。 pIShellLink Release 。 return hr。 TCHAR lpszLink[_PATH]。 pSHGetFolderPath GetFuncPtr_SHGetFolderPathA 。s Start Menu Programs folder if pSHGetFolderPath bFound SUCCEEDED pSHGetFolderPath NULL, CSIDL_PROGRAMS, NULL, 0, lpszLink 。 lstrcat lpszLink, lpszRelativeFolder 。 // Add the file name for the shortcut lstrcat lpszLink, lpszDescription 。 DeleteFile lpszLink 。 CString strResult。 IShellLink *psl。 WIN32_FIND_DATA findData。psl 。 // Get a pointer to the IPersistFile interface. hResult psl QueryInterface IID_IPersistFile, void ** amp。 if SUCCEEDED hResult WORD wsz [_PATH]。 // Load the shortcut. hResult ppf Load wsz, STGM_READ 。 if SUCCEEDED hResult lstrcpy szPath, lpszFilename 。findData, 0 。 // Release the pointer to IPersistFile. ppf Release 。 CoUninitialize 。 else return 。 while 1 // wait for event or message, if it39。hEvent, FALSE, nTimeout, QS_ALLINPUT 。 return TRUE。 else if dwRet WAIT_TIMEOUT // timed out ! return FALSE。 void AutoSizeColumns CListCtrl *pListCtrl // Call this after your the control is filled pListCtrl SetRedraw FALSE 。 int col pListCtrl GetHeaderCtrl GetItemCount 1。 col col。 int wc1 pListCtrl GetColumnWidth col 。 int wc2 pListCtrl GetColumnWidth col 。 pListCtrl SetColumnWidth col,wc 。 致 謝 四年的大學(xué)生活轉(zhuǎn)眼就要結(jié)束了在即將畢業(yè)之際,為了考驗(yàn)我們年來所學(xué)知識(shí)的成果,以及加強(qiáng)我們分析解決計(jì)算機(jī)應(yīng)用實(shí)際問題的能力和培養(yǎng)我們調(diào)查研究、查閱技術(shù)文獻(xiàn)、資料、手冊(cè)以及編寫技術(shù)文獻(xiàn)的能力學(xué)校安排我們這次畢業(yè)設(shè)計(jì)。本課題在選題及研究過程中得到老師的悉心指導(dǎo)老師多次詢問研究進(jìn)程,并為我指點(diǎn)迷津,幫助我開拓研究思路,精心點(diǎn)撥、熱忱鼓勵(lì)。感謝我的室友們,從遙遠(yuǎn)的家來到這個(gè)陌生的城市里,是你們和我共同維系著彼此之間般的感情,維系著寢室那份家的融洽。四年里,我們沒有紅過臉,沒有吵過嘴,沒有發(fā)生上大學(xué)前所擔(dān)心的任何不開心的事情。感謝我的爸爸媽媽,焉得諼草,言樹之背,養(yǎng)育之恩,無以回報(bào),你們永遠(yuǎn)健康快樂是我最大的心愿。我唯有在以后不斷地努力進(jìn)取,以學(xué)業(yè)和工作的繼續(xù)求索來感謝培育我的母校和所有關(guān)心我的師長親朋!希望我們都幸??鞓罚? I 綏化學(xué)院 2021 屆本科生畢業(yè)論文 程序 A 程序 B 網(wǎng)絡(luò)管理軟件 Socket Socket 網(wǎng)卡