Changeset 467 in dev for trunk/ab5.0/abdev/BasicCompiler32/MakePeHdr.cpp
- Timestamp:
- Mar 27, 2008, 2:29:35 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ab5.0/abdev/BasicCompiler32/MakePeHdr.cpp
r465 r467 104 104 extern DWORD ImageBase; 105 105 extern char *basbuf; 106 extern char OutputFileName[MAX_PATH];107 106 108 107 int i,i2,i3,i4,i5; … … 493 492 494 493 // 格納先ディレクトリを作る 495 Jenga::Common::Path path( OutputFileName);494 Jenga::Common::Path path( program.GetOutputFilePath() ); 496 495 Jenga::Common::Directory dir( path.GetDriveName() + path.GetDirName(), true ); 497 496 498 497 // 書き込む 499 if( !compiler.GetObjectModule().Write( OutputFileName) )498 if( !compiler.GetObjectModule().Write( program.GetOutputFilePath() ) ) 500 499 { 501 500 MessageBox(0,"XML書き込みに失敗","test",0); … … 548 547 hLib=LoadLibrary( pDllProc->GetDllFileName().c_str() ); 549 548 if(!hLib){ 550 extern char OutputFileName[MAX_PATH];551 549 char temp2[MAX_PATH],temp3[MAX_PATH]; 552 _splitpath( OutputFileName,temp2,temp3,NULL,NULL);550 _splitpath(program.GetOutputFilePath().c_str(),temp2,temp3,NULL,NULL); 553 551 lstrcat(temp2,temp3); 554 552 lstrcpy(temp3,pDllProc->GetDllFileName().c_str()); … … 599 597 600 598 if(bUse_ExportSection){ 601 _splitpath( OutputFileName,NULL,NULL,lpExportNames,temporary);599 _splitpath(program.GetOutputFilePath().c_str(),NULL,NULL,lpExportNames,temporary); 602 600 lstrcat(lpExportNames,temporary); 603 601 ExportNamesLength=lstrlen(lpExportNames)+1; … … 1412 1410 1413 1411 1414 hFile=CreateFile( OutputFileName,GENERIC_WRITE,0,NULL,CREATE_ALWAYS,FILE_ATTRIBUTE_NORMAL,NULL);1412 hFile=CreateFile(program.GetOutputFilePath().c_str(),GENERIC_WRITE,0,NULL,CREATE_ALWAYS,FILE_ATTRIBUTE_NORMAL,NULL); 1415 1413 if(hFile==INVALID_HANDLE_VALUE){ 1416 compiler.errorMessenger.Output(53, OutputFileName,-1);1414 compiler.errorMessenger.Output(53,program.GetOutputFilePath().c_str(),-1); 1417 1415 goto EndWriteOpcode; 1418 1416 }
Note:
See TracChangeset
for help on using the changeset viewer.