Changeset 717 in dev for trunk/ab5.0/abdev/BasicCompiler_Common
- Timestamp:
- Aug 13, 2008, 10:33:58 PM (16 years ago)
- Location:
- trunk/ab5.0/abdev/BasicCompiler_Common
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ab5.0/abdev/BasicCompiler_Common/NonVolatile.cpp
r523 r717 105 105 106 106 //開く 107 buffer=ReadBuffer_NonErrMsg( Jenga::Common::Environment::GetAppDir() + "\\UserSetting\\compiler.ini" );107 buffer=ReadBuffer_NonErrMsg( Program::GetUserAppDir() + "\\compiler.ini" ); 108 108 if(!buffer){ 109 109 //レジストリを読み込む … … 247 247 char temporary[MAX_PATH]; 248 248 249 const std::string userSettingDirPath = Jenga::Common::Environment::GetAppDir() + "\\UserSetting"; 250 251 HANDLE hFind; 252 WIN32_FIND_DATA wfd; 253 hFind=FindFirstFile( userSettingDirPath.c_str() ,&wfd); 254 if(hFind==INVALID_HANDLE_VALUE){ 255 //UserSettingディレクトリを作成 256 if(!CreateDirectory( userSettingDirPath.c_str() ,NULL)){ 257 extern HWND hOwnerEditor; 258 MessageBox(hOwnerEditor,"UserSettingディレクトリの作成に失敗","ActiveBasic",MB_OK|MB_ICONEXCLAMATION); 259 return; 260 } 261 } 249 // ユーザ情報保存用のディレクトリを作成 250 Jenga::Common::Directory dir( Program::GetUserAppDir(), true ); 251 262 252 263 253 extern HANDLE hHeap; … … 286 276 //保存 287 277 WriteBuffer( 288 userSettingDirPath+ "\\compiler.ini",278 Program::GetUserAppDir() + "\\compiler.ini", 289 279 buffer,lstrlen(buffer)); 290 280 -
trunk/ab5.0/abdev/BasicCompiler_Common/include/Program.h
r636 r717 30 30 31 31 bool AnalysisCommandLines(); 32 33 // ユーザデータ格納用のディレクトリを取得 34 static const std::string GetUserAppDir(); 32 35 33 36 const std::string &GetSourceFilePath() const -
trunk/ab5.0/abdev/BasicCompiler_Common/src/Program.cpp
r697 r717 139 139 } 140 140 141 const std::string Program::GetUserAppDir() 142 { 143 return Jenga::Common::Environment::GetUserAppDir() + "\\ActiveBasic\\abc"; 144 } 145 141 146 int Program::GetExitCode() const 142 147 {
Note:
See TracChangeset
for help on using the changeset viewer.