Changeset 167 in dev for trunk/abdev/BasicCompiler_Common/BasicCompiler.cpp
- Timestamp:
- Jun 17, 2007, 9:56:19 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/abdev/BasicCompiler_Common/BasicCompiler.cpp
r165 r167 1 #include <jenga/include/common/logger.h> 2 #include <jenga/include/common/Environment.h> 1 #include <Program.h> 3 2 4 3 #include "BasicCompiler.h" … … 163 162 lstrcpy(path,temp3); 164 163 } 165 void GetFullPath( char *path,char *dir){164 void GetFullPath( char *path, const string &baseDirPath ){ 166 165 int i,i2,i3,i4; 167 166 char temporary[MAX_PATH]; … … 186 185 } 187 186 188 i3= lstrlen(dir);i4=0;187 i3=baseDirPath.size();i4=0; 189 188 while(i4<i2){ 190 189 for(i3--;;i3--){ 191 if( dir[i3-1]=='\\'){190 if(baseDirPath[i3-1]=='\\'){ 192 191 i4++; 193 192 break; … … 195 194 } 196 195 } 197 memcpy(temporary, dir,i3);196 memcpy(temporary,baseDirPath.c_str(),i3); 198 197 temporary[i3]=0; 199 198 lstrcat(temporary,path+i); … … 563 562 hInst=hThisInst; 564 563 565 GetModuleFileName(hInst,temporary,MAX_PATH);566 _splitpath(temporary,BasicSystemDir,temp2,NULL,NULL);567 lstrcat(BasicSystemDir,temp2);568 569 564 //不揮発性データを取得 570 565 pobj_nv=new CNonVolatile; … … 742 737 743 738 //インクルードディレクトリを絶対パスに変更 744 GetFullPath(szIncludeDir, BasicSystemDir);739 GetFullPath(szIncludeDir,(Jenga::Common::Environment::GetAppDir()+"\\").c_str()); 745 740 746 741 if(bDll){
Note:
See TracChangeset
for help on using the changeset viewer.