Changeset 165 in dev for trunk/abdev/BasicCompiler32/MakePeHdr.cpp
- Timestamp:
- Jun 17, 2007, 1:45:13 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/abdev/BasicCompiler32/MakePeHdr.cpp
r159 r165 1 #include <jenga/include/common/Environment.h> 2 1 3 #include "../BasicCompiler_Common/common.h" 2 4 #include "Opcode.h" … … 342 344 #ifdef _DEBUG 343 345 { 344 ofstream ofs( ( (string)BasicSystemDir + "middle_code.txt" ).c_str() );346 ofstream ofs( ( Jenga::Common::Environment::GetAppDir() + "\\middle_code.txt" ).c_str() ); 345 347 ofs << basbuf << endl; 346 348 ofs.close(); … … 1155 1157 char *DosStubBuffer; 1156 1158 int DosStubSize; 1157 extern char BasicSystemDir[MAX_PATH];1158 sprintf(temporary,"%sSubOperation\\dosstub.pgm",BasicSystemDir);1159 hFile=CreateFile(temporary,GENERIC_READ,0,NULL,OPEN_EXISTING,FILE_ATTRIBUTE_NORMAL,NULL);1159 hFile=CreateFile( 1160 ( Jenga::Common::Environment::GetAppDir() + "\\SubOperation\\dosstub.pgm" ).c_str(), 1161 GENERIC_READ,0,NULL,OPEN_EXISTING,FILE_ATTRIBUTE_NORMAL,NULL); 1160 1162 if(hFile==INVALID_HANDLE_VALUE){ 1161 1163 MessageBox(hOwnerEditor,"dosstub.pgmの読み込みに失敗","error",MB_OK);
Note:
See TracChangeset
for help on using the changeset viewer.