Changeset 477 in dev for trunk/ab5.0/abdev/ProjectEditor/ProjectEditor.cpp
- Timestamp:
- Apr 6, 2008, 8:07:40 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ab5.0/abdev/ProjectEditor/ProjectEditor.cpp
r475 r477 89 89 90 90 91 void CreateProcessWithStdHandle( const char *appPath, const char *cmdLine)91 void CreateProcessWithStdHandle( const std::string &appPath, const std::string &cmdLine) 92 92 { 93 93 std::string argsStr = (std::string)"\"" + appPath + "\" " + cmdLine; … … 2082 2082 lstrcat(temporary,temp2); 2083 2083 2084 sprintf(str,"%s%s",pj_editor_Dir,lpszCompilerName); 2085 2086 CreateProcessWithStdHandle( str, temporary ); 2084 CreateProcessWithStdHandle( ActiveBasic::Common::Environment::GetCompilerExePath( selectingPlatform ), temporary ); 2087 2085 2088 2086 return 0; … … 2134 2132 lstrcat(temporary,temp2); 2135 2133 2136 sprintf(str,"%s%s",pj_editor_Dir,lpszCompilerName); 2137 2138 CreateProcessWithStdHandle( str, temporary ); 2134 CreateProcessWithStdHandle( ActiveBasic::Common::Environment::GetCompilerExePath( selectingPlatform ), temporary ); 2139 2135 2140 2136 return 0; … … 2167 2163 lstrcat(temporary,temp2); 2168 2164 2165 ActiveBasic::Common::Platform::EnumType platform; 2169 2166 if(dwPlatform==IMAGE_FILE_MACHINE_I386) 2170 sprintf(str,"%s%s",pj_editor_Dir,WIN32_COMPILER_NAME); 2167 { 2168 platform = ActiveBasic::Common::Platform::X86; 2169 } 2171 2170 else if(dwPlatform==IMAGE_FILE_MACHINE_AMD64) 2172 sprintf(str,"%s%s",pj_editor_Dir,WIN64_COMPILER_NAME); 2173 2174 CreateProcessWithStdHandle( str, temporary ); 2171 { 2172 platform = ActiveBasic::Common::Platform::X64; 2173 } 2174 else 2175 { 2176 throw; 2177 } 2178 2179 CreateProcessWithStdHandle( ActiveBasic::Common::Environment::GetCompilerExePath( platform ), temporary ); 2175 2180 2176 2181 return 0; … … 2222 2227 lstrcat(temporary,temp2); 2223 2228 2224 sprintf(str,"%s%s",pj_editor_Dir,lpszCompilerName); 2225 2226 CreateProcessWithStdHandle( str, temporary ); 2229 CreateProcessWithStdHandle( ActiveBasic::Common::Environment::GetCompilerExePath( selectingPlatform ), temporary ); 2227 2230 2228 2231 return 0;
Note:
See TracChangeset
for help on using the changeset viewer.