Changeset 620 in dev for trunk/ab5.0/abdev/abdev/src
- Timestamp:
- May 19, 2008, 6:17:02 PM (16 years ago)
- Location:
- trunk/ab5.0/abdev/abdev/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ab5.0/abdev/abdev/src/MainFrame.cpp
r619 r620 446 446 lstrcpy(temporary,NewFileName); 447 447 if(!strstr(temporary,".")) lstrcat(temporary,".ab"); 448 GetFullPath(temporary,projectInfo.dir); 448 449 lstrcpy( temporary, projectInfo.GetWorkDir().GetFullPath( temporary ).c_str() ); 449 450 } 450 451 else bAddToProject=0; … … 521 522 void MainFrame::OnCmdProjectFolderOpen( UINT uNotifyCode, int nID, CWindow wndCtl ) 522 523 { 523 ShellExecute(m_hWnd,"explore",projectInfo. dir,NULL,NULL,SW_SHOWNORMAL);524 ShellExecute(m_hWnd,"explore",projectInfo.GetWorkDir().GetPath().c_str(),NULL,NULL,SW_SHOWNORMAL); 524 525 } 525 526 … … 952 953 //出力ファイル名をtemp3へ 953 954 lstrcpy(temp3,projectInfo.lpszOutput_Debug); 954 GetFullPath(temp3,projectInfo.dir);955 lstrcpy( temp3, projectInfo.GetWorkDir().GetFullPath( temp3 ).c_str() ); 955 956 956 957 if(IsNeedCompileForProject(1)) … … 1030 1031 //出力ファイル名をtemp3へ 1031 1032 lstrcpy(temp3,projectInfo.lpszOutput_Debug); 1032 GetFullPath(temp3,projectInfo.dir);1033 lstrcpy( temp3, projectInfo.GetWorkDir().GetFullPath( temp3 ).c_str() ); 1033 1034 1034 1035 sprintf(temporary,"\"%s\" \"%s\" /debug /wnd:%08x",temp2,temp3,m_hWnd); … … 1144 1145 //出力ファイル名をtemp3へ 1145 1146 lstrcpy(temp3,projectInfo.lpszOutput_Release); 1146 GetFullPath(temp3,projectInfo.dir);1147 lstrcpy( temp3, projectInfo.GetWorkDir().GetFullPath( temp3 ).c_str() ); 1147 1148 1148 1149 sprintf(temporary,"\"%s\" \"%s\" /wnd:%08x",temp2,temp3,m_hWnd); … … 1208 1209 else{ 1209 1210 lstrcpy(temporary,projectInfo.lpszOutput_Debug); 1210 GetFullPath(temporary,projectInfo.dir);1211 lstrcpy( temporary, projectInfo.GetWorkDir().GetFullPath( temporary ).c_str() ); 1211 1212 } 1212 1213 } -
trunk/ab5.0/abdev/abdev/src/ProjectManager/ProjectManager.cpp
r619 r620 18 18 19 19 //プロジェクトの作業ディレクトリを取得 20 _splitpath(path,this->dir,temporary,0,0); 21 lstrcat(this->dir,temporary); 20 _splitpath(path,temporary,temp2,0,0); 21 lstrcat( temporary, temp2 ); 22 this->workDir = Jenga::Common::Directory( temporary ); 22 23 23 24 //ファイルを開く、保存の初期ディレクトリをセット 24 lstrcpy(pobj_nv->DefSaveDir,this-> dir);25 lstrcpy(pobj_nv->DefSaveDir,this->GetWorkDir().GetPath().c_str()); 25 26 26 27 … … 253 254 ///////////////////////////////////////////// 254 255 //ウィンドウ定義ファイル(*.wnd)をオープン 255 sprintf(temp2,"%s%s.wnd",this-> dir,this->GetName().c_str());256 sprintf(temp2,"%s%s.wnd",this->GetWorkDir().GetPath().c_str(),this->GetName().c_str()); 256 257 if(!OpenWindowFile(temp2)) return; 257 258 } … … 263 264 } 264 265 265 OpenWorkfile( this-> dir+ this->GetName() + ".wrk" );266 OpenWorkfile( this->GetWorkDir().GetPath() + this->GetName() + ".wrk" ); 266 267 267 268 this->modify=0; … … 324 325 for(i=0;this->res.NumberOfIconRes;i++){ 325 326 lstrcpy(temporary,this->res.pIconResInfo[i].path); 326 GetFullPath(temporary,this->dir);327 lstrcpy( temporary, this->GetWorkDir().GetFullPath( temporary ).c_str() ); 327 328 if(lstrcmpi(MdiInfo[WndNum].path,temporary)==0){ 328 329 SendMessage(hCloseChild,WM_CLOSE,0,0);
Note:
See TracChangeset
for help on using the changeset viewer.