comparison host/tools/configtool/standalone/win32/Configtool.cpp @ 82:6736c52df507 ecos-sw-2000-04-14

Merge from eCos master repository on 2000-04-14-13:35:46-BST
author jlarmour
date Tue, 18 Apr 2000 21:51:55 +0000
parents 435cced73e2f
children 5e8f3b328bb3
comparison
equal deleted inserted replaced
81:89fef2181d7d 82:6736c52df507
51 #include "ControlView.h" 51 #include "ControlView.h"
52 #include "CSHDialog.h" 52 #include "CSHDialog.h"
53 #include "CTUtils.h" 53 #include "CTUtils.h"
54 #include "eCosDialog.h" 54 #include "eCosDialog.h"
55 #include "eCosTest.h" 55 #include "eCosTest.h"
56 #include "eCosSocket.h"
56 #include "FileName.h" 57 #include "FileName.h"
57 #include "MainFrm.h" 58 #include "MainFrm.h"
58 #include "OutputView.h" 59 #include "OutputView.h"
59 #include "RegKeyEx.h" 60 #include "RegKeyEx.h"
60 #include "Splash.h" 61 #include "Splash.h"
102 ///////////////////////////////////////////////////////////////////////////// 103 /////////////////////////////////////////////////////////////////////////////
103 // CConfigToolApp initialization 104 // CConfigToolApp initialization
104 105
105 BOOL CConfigToolApp::InitInstance() 106 BOOL CConfigToolApp::InitInstance()
106 { 107 {
107 CeCosTest::Init(); 108 CeCosSocket::Init();
109 CeCosTestPlatform::Load();
108 CFileName strCSHFile; 110 CFileName strCSHFile;
109 ::GetModuleFileName(::GetModuleHandle(NULL),strCSHFile.GetBuffer(1+MAX_PATH),MAX_PATH); 111 ::GetModuleFileName(::GetModuleHandle(NULL),strCSHFile.GetBuffer(1+MAX_PATH),MAX_PATH);
110 strCSHFile.ReleaseBuffer(); 112 strCSHFile.ReleaseBuffer();
111 strCSHFile.ReplaceExtension(_T(".chm")); 113 strCSHFile.ReplaceExtension(_T(".chm"));
112 CConfigTool::strHelpFile=strCSHFile; 114 CConfigTool::strHelpFile=strCSHFile;
286 CString strPrefix,strBinDir; 288 CString strPrefix,strBinDir;
287 m_arstrBinDirs.GetNextAssoc(pos, strPrefix, strBinDir); 289 m_arstrBinDirs.GetNextAssoc(pos, strPrefix, strBinDir);
288 WriteProfileString(CUtils::LoadString(IDS_KEY_TOOLS_DIR),strPrefix,strBinDir); 290 WriteProfileString(CUtils::LoadString(IDS_KEY_TOOLS_DIR),strPrefix,strBinDir);
289 } 291 }
290 ::DeleteFile(CConfigToolDoc::HTMLHelpLinkFileName()); 292 ::DeleteFile(CConfigToolDoc::HTMLHelpLinkFileName());
291 CeCosTest::Term(); 293 CeCosSocket::Term();
294 CeCosTestPlatform::RemoveAllPlatforms();
292 return CWinApp::ExitInstance(); 295 return CWinApp::ExitInstance();
293 } 296 }
294 297
295 void CConfigToolApp::LoadStdProfileSettings() 298 void CConfigToolApp::LoadStdProfileSettings()
296 { 299 {