Ignore:
Timestamp:
May 19, 2008, 6:17:02 PM (16 years ago)
Author:
dai_9181
Message:

Projectクラスをリファクタリング中。

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ab5.0/abdev/abdev/src/ProjectManager/ProjectManager.cpp

    r619 r620  
    1818
    1919    //プロジェクトの作業ディレクトリを取得
    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 );
    2223
    2324    //ファイルを開く、保存の初期ディレクトリをセット
    24     lstrcpy(pobj_nv->DefSaveDir,this->dir);
     25    lstrcpy(pobj_nv->DefSaveDir,this->GetWorkDir().GetPath().c_str());
    2526
    2627
     
    253254        /////////////////////////////////////////////
    254255        //ウィンドウ定義ファイル(*.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());
    256257        if(!OpenWindowFile(temp2)) return;
    257258    }
     
    263264    }
    264265
    265     OpenWorkfile( this->dir + this->GetName() + ".wrk" );
     266    OpenWorkfile( this->GetWorkDir().GetPath() + this->GetName() + ".wrk" );
    266267
    267268    this->modify=0;
     
    324325            for(i=0;this->res.NumberOfIconRes;i++){
    325326                lstrcpy(temporary,this->res.pIconResInfo[i].path);
    326                 GetFullPath(temporary,this->dir);
     327                lstrcpy( temporary, this->GetWorkDir().GetFullPath( temporary ).c_str() );
    327328                if(lstrcmpi(MdiInfo[WndNum].path,temporary)==0){
    328329                    SendMessage(hCloseChild,WM_CLOSE,0,0);
Note: See TracChangeset for help on using the changeset viewer.