Changeset 455 in dev for trunk/ab5.0/abdev/BasicCompiler_Common
- Timestamp:
- Mar 22, 2008, 9:47:59 PM (17 years ago)
- Location:
- trunk/ab5.0/abdev/BasicCompiler_Common
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ab5.0/abdev/BasicCompiler_Common/BasicCompiler.cpp
r378 r455 1 1 #include "stdafx.h" 2 3 #include <shlwapi.h> 2 4 3 5 #include <jenga/include/common/Path.h> … … 573 575 } 574 576 575 int PASCAL WinMain(HINSTANCE hThisInst,HINSTANCE hPrevInst,LPSTR lpCmdLine,int nShowCmd){ 577 int main() 578 { 576 579 int i,i2; 577 580 char temporary[1024],temp2[MAX_PATH]; 581 582 hInst = GetModuleHandle( NULL ); 583 LPSTR lpCmdLine = PathGetArgs( GetCommandLine() ); 578 584 579 585 //_Test(); … … 588 594 ScreenX=GetSystemMetrics(SM_CXSCREEN); 589 595 ScreenY=GetSystemMetrics(SM_CYSCREEN); 590 591 hInst=hThisInst;592 596 593 597 //不揮発性データを取得 … … 919 923 trace("Complete ActiveBasic Compiler!"); 920 924 925 ExitProcess( 0 ); 921 926 922 927 return 0; -
trunk/ab5.0/abdev/BasicCompiler_Common/Debug.cpp
r357 r455 464 464 if( !compiler.IsDll() ){ 465 465 //EXEファイルをデバッグ 466 CreateProcess(OutputFileName,szDebugCmdLine,NULL,NULL,0,NORMAL_PRIORITY_CLASS|DEBUG_ONLY_THIS_PROCESS ,NULL,NULL,&si,&pi);466 CreateProcess(OutputFileName,szDebugCmdLine,NULL,NULL,0,NORMAL_PRIORITY_CLASS|DEBUG_ONLY_THIS_PROCESS|CREATE_NEW_CONSOLE,NULL,NULL,&si,&pi); 467 467 } 468 468 else{ 469 469 //DLLファイルをデバッグ 470 CreateProcess(ExeFilePathForDll,szDebugCmdLine,NULL,NULL,0,NORMAL_PRIORITY_CLASS|DEBUG_ONLY_THIS_PROCESS ,NULL,NULL,&si,&pi);470 CreateProcess(ExeFilePathForDll,szDebugCmdLine,NULL,NULL,0,NORMAL_PRIORITY_CLASS|DEBUG_ONLY_THIS_PROCESS|CREATE_NEW_CONSOLE,NULL,NULL,&si,&pi); 471 471 } 472 472 -
trunk/ab5.0/abdev/BasicCompiler_Common/error.cpp
r448 r455 1 1 #include "stdafx.h" 2 3 #include <iostream> 2 4 3 5 #include <Program.h> … … 377 379 SendDlgItemMessage(hMainDlg,IDC_ERRORLIST,EM_REPLACESEL,0,(LPARAM)temp2); 378 380 379 381 std::string msg = temp2; 380 382 if(num==-2){ 381 383 //コンパイルメッセージ … … 385 387 } 386 388 else{ 389 msg = (num>-100) ? "error - " : "warning - "; 390 msg += temp2; 387 391 if(num>-100){ 388 392 //警告ではなく、エラーの場合はエラーチェックフラグを立てる 389 393 extern BOOL bError; 390 394 bError=1; 391 392 // ログに出力393 trace( "error - " << temp2 );394 395 } 395 396 else{ 396 397 extern int WarningNum; 397 398 WarningNum++; 398 399 // ログに出力 400 trace( "warning - " << temp2 ); 401 } 402 } 399 } 400 401 // ログに出力 402 trace( msg ); 403 } 404 405 std::cout << msg << endl; 406 403 407 404 408 ErrorNum++;
Note:
See TracChangeset
for help on using the changeset viewer.