Changeset 467 in dev for trunk/ab5.0/abdev/BasicCompiler32
- Timestamp:
- Mar 27, 2008, 2:29:35 AM (17 years ago)
- Location:
- trunk/ab5.0/abdev/BasicCompiler32
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ab5.0/abdev/BasicCompiler32/BasicCompiler.vcproj
r465 r467 1354 1354 </File> 1355 1355 <File 1356 RelativePath="..\BasicCompiler_Common\src\Program.cpp"1357 >1358 </File>1359 <File1360 1356 RelativePath="..\BasicCompiler_Common\src\Source.cpp" 1361 1357 > … … 1378 1374 </File> 1379 1375 </Filter> 1376 </Filter> 1377 <Filter 1378 Name="Application Classes" 1379 > 1380 <File 1381 RelativePath="..\BasicCompiler_Common\src\Program.cpp" 1382 > 1383 </File> 1380 1384 </Filter> 1381 1385 </Filter> … … 1580 1584 </File> 1581 1585 </Filter> 1586 <Filter 1587 Name="Debugger Classes" 1588 > 1589 <File 1590 RelativePath="..\BasicCompiler_Common\include\Debugger.h" 1591 > 1592 </File> 1593 </Filter> 1582 1594 </Filter> 1583 1595 <Filter -
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 } -
trunk/ab5.0/abdev/BasicCompiler32/stdafx.h
r465 r467 5 5 #include <vector> 6 6 #include <fstream> 7 #include <iostream> 7 8 8 9 #include <windows.h> … … 14 15 #include <limits.h> 15 16 #include <shlobj.h> 16 #include < iostream>17 #include <process.h> 17 18 18 19 //boost libraries … … 30 31 #include <Program.h> 31 32 #include <Compiler.h> 33 #include <Debugger.h>
Note:
See TracChangeset
for help on using the changeset viewer.