Changeset 733 in dev for trunk/ab5.0
- Timestamp:
- Aug 24, 2008, 6:07:40 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ab5.0/abdev/BasicCompiler_Common/MakeExe.cpp
r721 r733 27 27 28 28 void AddSourceCode(const char *buffer){ 29 char *temp; 30 temp=(char *)HeapAlloc(hHeap,0,lstrlen(buffer)+8192); 29 char *temp=(char *)HeapAlloc(hHeap,0,lstrlen(buffer)+8192); 31 30 lstrcpy(temp,buffer); 32 31 … … 37 36 38 37 HeapDefaultFree(temp); 38 } 39 40 namespace{ 41 const char *GetCoreLibName() 42 { 43 if( compiler.IsDebug() ){ 44 if( compiler.IsUnicode() ){ 45 return "coreud.lib"; 46 } 47 else{ 48 return "cored.lib"; 49 } 50 } 51 else{ 52 if( compiler.IsUnicode() ){ 53 return "coreu.lib"; 54 } 55 else{ 56 return "core.lib"; 57 } 58 } 59 } 39 60 } 40 61 … … 51 72 52 73 //プログレスバーの設定 53 PostMessage(GetDlgItem(hMainDlg,IDC_PROGRESS),PBM_SETRANGE,0,MAKELPARAM(0,6)); 54 PostMessage(GetDlgItem(hMainDlg,IDC_PROGRESS),PBM_SETSTEP,1,0); 74 HWND hwndProgress=GetDlgItem(hMainDlg,IDC_PROGRESS); 75 PostMessage(hwndProgress,PBM_SETRANGE,0,MAKELPARAM(0,6)); 76 PostMessage(hwndProgress,PBM_SETSTEP,1,0); 55 77 56 78 //"中断" … … 167 189 extern BOOL bDebugCompile; 168 190 169 const char *coreFileName = "core.lib"; 170 if( compiler.IsDebug() ) 171 { 172 coreFileName = "cored.lib"; 173 } 191 const char *coreFileName = GetCoreLibName(); 174 192 175 193 char coreFilePath[MAX_PATH]; 176 #if def_AMD64_194 #if defined _AMD64_ 177 195 sprintf( coreFilePath, "..\\lib\\x64\\%s", coreFileName ); 178 196 #else … … 187 205 if( compiler.staticLibraries.back()->Read( coreFilePath ) ) 188 206 { 189 compiler.messenger.Output( ( (std::string)"\""+ path.GetFullPath() + "\" を読み込みました。").c_str() );207 compiler.messenger.Output( ('\"' + path.GetFullPath() + "\" を読み込みました。").c_str() ); 190 208 } 191 209 else … … 212 230 if( compiler.staticLibraries.back()->Read( filePath ) ) 213 231 { 214 compiler.messenger.Output( ( (std::string)"\""+ path.GetFullPath() + "\" を読み込みました。").c_str() );232 compiler.messenger.Output( ('\"' + path.GetFullPath() + "\" を読み込みました。").c_str() ); 215 233 } 216 234 else … … 250 268 EndCompile: 251 269 if(bStopCompile){ 252 PostMessage( GetDlgItem(hMainDlg,IDC_PROGRESS),PBM_SETPOS,0,0);270 PostMessage(hwndProgress,PBM_SETPOS,0,0); 253 271 254 272 //"コンパイルはユーザーにより中断されました。" … … 295 313 #endif 296 314 } 297 voidMainThread(void *)315 unsigned __stdcall MainThread(void *) 298 316 { 299 317 if( program.IsDebugRun() ) … … 315 333 Build(); 316 334 } 317 } 335 return 0; 336 }
Note:
See TracChangeset
for help on using the changeset viewer.