- Timestamp:
- Aug 13, 2008, 11:01:29 PM (16 years ago)
- Location:
- trunk/ab5.0/abdev
- Files:
-
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ab5.0/abdev/BasicCompiler_Common/BasicCompiler.cpp
r625 r719 240 240 241 241 hFile=CreateFile( 242 ( ActiveBasic::Common::Environment::Get AbdevRootPath() + "\\pgm.tmp" ).c_str(),242 ( ActiveBasic::Common::Environment::GetUserAppDir() + "\\pgm.tmp" ).c_str(), 243 243 GENERIC_WRITE,0,NULL,CREATE_ALWAYS,FILE_ATTRIBUTE_ARCHIVE|FILE_ATTRIBUTE_HIDDEN|FILE_ATTRIBUTE_TEMPORARY,NULL); 244 244 WriteFile(hFile,FileName,lstrlen(FileName),&dw,NULL); … … 696 696 DWORD dwAccessBytes; 697 697 hFile=CreateFile( 698 ( ActiveBasic::Common::Environment::Get AbdevRootPath() + "\\pgm.tmp" ).c_str(),698 ( ActiveBasic::Common::Environment::GetUserAppDir() + "\\pgm.tmp" ).c_str(), 699 699 GENERIC_READ,FILE_SHARE_READ|FILE_SHARE_WRITE,NULL,OPEN_EXISTING,FILE_ATTRIBUTE_NORMAL,NULL); 700 700 if(hFile!=INVALID_HANDLE_VALUE){ -
trunk/ab5.0/abdev/BasicCompiler_Common/NonVolatile.cpp
r717 r719 105 105 106 106 //開く 107 buffer=ReadBuffer_NonErrMsg( Program::Get UserAppDir() + "\\compiler.ini" );107 buffer=ReadBuffer_NonErrMsg( Program::GetAbcUserAppDir() + "\\compiler.ini" ); 108 108 if(!buffer){ 109 109 //レジストリを読み込む … … 248 248 249 249 // ユーザ情報保存用のディレクトリを作成 250 Jenga::Common::Directory dir( Program::Get UserAppDir(), true );250 Jenga::Common::Directory dir( Program::GetAbcUserAppDir(), true ); 251 251 252 252 … … 276 276 //保存 277 277 WriteBuffer( 278 Program::Get UserAppDir() + "\\compiler.ini",278 Program::GetAbcUserAppDir() + "\\compiler.ini", 279 279 buffer,lstrlen(buffer)); 280 280 -
trunk/ab5.0/abdev/BasicCompiler_Common/include/Program.h
r717 r719 32 32 33 33 // ユーザデータ格納用のディレクトリを取得 34 static const std::string Get UserAppDir();34 static const std::string GetAbcUserAppDir(); 35 35 36 36 const std::string &GetSourceFilePath() const -
trunk/ab5.0/abdev/BasicCompiler_Common/src/BreakPoint.cpp
r648 r719 119 119 buffer=(char *)HeapAlloc(hHeap,0,65535); 120 120 121 std::string filepath = ActiveBasic::Common::Environment::GetAbdevRootPath() + "\\ab_breakpoint.tmp"; 121 char temporary[MAX_PATH]; 122 GetTempPath(MAX_PATH,temporary); 123 if(temporary[lstrlen(temporary)-1]!='\\') lstrcat(temporary,"\\"); 124 lstrcat(temporary,"ab_breakpoint.tmp"); 125 122 126 HANDLE hFile=CreateFile( 123 filepath.c_str(),127 temporary, 124 128 GENERIC_READ,FILE_SHARE_READ|FILE_SHARE_WRITE,NULL,OPEN_EXISTING,FILE_ATTRIBUTE_NORMAL,NULL); 125 129 if(hFile!=INVALID_HANDLE_VALUE) -
trunk/ab5.0/abdev/BasicCompiler_Common/src/Messenger.cpp
r702 r719 481 481 482 482 hFile=CreateFile( 483 ( ActiveBasic::Common::Environment::Get AbdevRootPath() + "\\pgm.tmp" ).c_str(),483 ( ActiveBasic::Common::Environment::GetUserAppDir() + "\\pgm.tmp" ).c_str(), 484 484 GENERIC_WRITE,0,NULL,CREATE_ALWAYS,FILE_ATTRIBUTE_ARCHIVE|FILE_ATTRIBUTE_HIDDEN|FILE_ATTRIBUTE_TEMPORARY,NULL); 485 485 WriteFile(hFile,FileName,lstrlen(FileName),&dw,NULL); -
trunk/ab5.0/abdev/BasicCompiler_Common/src/Program.cpp
r717 r719 1 1 #include "stdafx.h" 2 2 3 Jenga::Common::Logger Program::logger( Jenga::Common::Environment::GetAppDir() + "\\logger.log", true );3 Jenga::Common::Logger Program::logger( Program::GetAbcUserAppDir() + "\\logger.log", true ); 4 4 5 5 Program program; … … 139 139 } 140 140 141 const std::string Program::Get UserAppDir()141 const std::string Program::GetAbcUserAppDir() 142 142 { 143 return Jenga::Common::Environment::GetUserAppDir() + "\\ActiveBasic\\abc";143 return ActiveBasic::Common::Environment::GetUserAppDir() + "\\abc"; 144 144 } 145 145 -
trunk/ab5.0/abdev/ab_common/include/Environment.h
r637 r719 33 33 static const std::string GetAbdevRootPath(); 34 34 35 static const std::string GetUserAppDir(); 36 35 37 static const std::string GetAbdevSystemDirPath() 36 38 { -
trunk/ab5.0/abdev/ab_common/src/Environment.cpp
r637 r719 18 18 return rootPath; 19 19 } 20 21 const std::string Environment::GetUserAppDir() 22 { 23 return Jenga::Common::Environment::GetUserAppDir() + "\\ActiveBasic"; 24 } 25 20 26 const std::string Environment::GetCompilerExePath( Platform::EnumType platform ) 21 27 { -
trunk/ab5.0/abdev/abdev/Debugger.cpp
r705 r719 490 490 lstrcat(temporary,"ab_breakpoint.tmp"); 491 491 492 //未完成493 sprintf(temporary,"%sab_breakpoint.tmp",pj_editor_Dir);494 495 492 ATL::CHandle hFile(CreateFile(temporary,GENERIC_WRITE,0,NULL,CREATE_ALWAYS,FILE_ATTRIBUTE_ARCHIVE|FILE_ATTRIBUTE_HIDDEN|FILE_ATTRIBUTE_TEMPORARY,NULL)); 496 493 if(hFile==INVALID_HANDLE_VALUE){ -
trunk/ab5.0/abdev/abdev/NonVolatile.cpp
r718 r719 235 235 char temporary[MAX_PATH]; 236 236 237 std::string userAppDir = ActiveBasic::IDE::Program::Get UserAppDir();237 std::string userAppDir = ActiveBasic::IDE::Program::GetIdeUserAppDir(); 238 238 239 239 … … 669 669 670 670 // ユーザ情報保存用のディレクトリを作成 671 Jenga::Common::Directory dir( ActiveBasic::IDE::Program::Get UserAppDir(), true );671 Jenga::Common::Directory dir( ActiveBasic::IDE::Program::GetIdeUserAppDir(), true ); 672 672 673 673 … … 806 806 807 807 808 std::string userAppDir = ActiveBasic::IDE::Program::Get UserAppDir();808 std::string userAppDir = ActiveBasic::IDE::Program::GetIdeUserAppDir(); 809 809 810 810 //保存 -
trunk/ab5.0/abdev/abdev/include/Program.h
r717 r719 17 17 18 18 // ユーザデータ格納用のディレクトリを取得 19 static const std::string Get UserAppDir();19 static const std::string GetIdeUserAppDir(); 20 20 21 21 static void Main(); -
trunk/ab5.0/abdev/abdev/src/MainFrame.cpp
r705 r719 550 550 DWORD AccBytes; 551 551 { 552 sprintf(temporary,"%s pgm.tmp",pj_editor_Dir);552 sprintf(temporary,"%s\\pgm.tmp",ActiveBasic::Common::Environment::GetUserAppDir().c_str()); 553 553 ATL::CHandle fh(CreateFile(temporary,GENERIC_READ,FILE_SHARE_READ|FILE_SHARE_WRITE,NULL,OPEN_EXISTING,FILE_ATTRIBUTE_NORMAL,NULL)); 554 554 if(fh==INVALID_HANDLE_VALUE){ … … 1135 1135 //デバッグ用のコマンドライン及び実行可能ファイル(DLLのみ) 1136 1136 sprintf(temporary,"%s\r\n%s",projectInfo.szExePath,projectInfo.szCmdLine); 1137 sprintf(temp2,"%s pgm.tmp",pj_editor_Dir);1137 sprintf(temp2,"%s\\pgm.tmp",ActiveBasic::Common::Environment::GetUserAppDir().c_str()); 1138 1138 { 1139 1139 ATL::CHandle hFile(CreateFile(temp2,GENERIC_WRITE,0,NULL,CREATE_ALWAYS,FILE_ATTRIBUTE_ARCHIVE|FILE_ATTRIBUTE_HIDDEN|FILE_ATTRIBUTE_TEMPORARY,NULL)); -
trunk/ab5.0/abdev/abdev/src/Program.cpp
r717 r719 27 27 } 28 28 29 const std::string Program::Get UserAppDir()29 const std::string Program::GetIdeUserAppDir() 30 30 { 31 return Jenga::Common::Environment::GetUserAppDir() + "\\ActiveBasic\\ide";31 return ActiveBasic::Common::Environment::GetUserAppDir() + "\\ide"; 32 32 } 33 33
Note:
See TracChangeset
for help on using the changeset viewer.