Ignore:
Timestamp:
Mar 22, 2008, 9:47:59 PM (16 years ago)
Author:
dai_9181
Message:

・コンパイルビューへの出力を標準出力にも行うようにした。
#164への対応。コンパイルを中断すると高確率で強制終了してしまうバグを修正。
・ProjectEditorをVista用Microsoft SDKにてビルドできるようにした(WINVER定数を0x0501に指定した)。
#168への対応。エディタ上のDelegateキーワードを青色で表示するようにした。

Location:
trunk/ab5.0/abdev/BasicCompiler_Common
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/ab5.0/abdev/BasicCompiler_Common/BasicCompiler.cpp

    r378 r455  
    11#include "stdafx.h"
     2
     3#include <shlwapi.h>
    24
    35#include <jenga/include/common/Path.h>
     
    573575}
    574576
    575 int PASCAL WinMain(HINSTANCE hThisInst,HINSTANCE hPrevInst,LPSTR lpCmdLine,int nShowCmd){
     577int main()
     578{
    576579    int i,i2;
    577580    char temporary[1024],temp2[MAX_PATH];
     581
     582    hInst = GetModuleHandle( NULL );
     583    LPSTR lpCmdLine = PathGetArgs( GetCommandLine() );
    578584
    579585    //_Test();
     
    588594    ScreenX=GetSystemMetrics(SM_CXSCREEN);
    589595    ScreenY=GetSystemMetrics(SM_CYSCREEN);
    590 
    591     hInst=hThisInst;
    592596
    593597    //不揮発性データを取得
     
    919923    trace("Complete ActiveBasic Compiler!");
    920924
     925    ExitProcess( 0 );
    921926
    922927    return 0;
  • trunk/ab5.0/abdev/BasicCompiler_Common/Debug.cpp

    r357 r455  
    464464        if( !compiler.IsDll() ){
    465465            //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);
    467467        }
    468468        else{
    469469            //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);
    471471        }
    472472
  • trunk/ab5.0/abdev/BasicCompiler_Common/error.cpp

    r448 r455  
    11#include "stdafx.h"
     2
     3#include <iostream>
    24
    35#include <Program.h>
     
    377379    SendDlgItemMessage(hMainDlg,IDC_ERRORLIST,EM_REPLACESEL,0,(LPARAM)temp2);
    378380
    379 
     381    std::string msg = temp2;
    380382    if(num==-2){
    381383        //コンパイルメッセージ
     
    385387    }
    386388    else{
     389        msg = (num>-100) ? "error - " : "warning - ";
     390        msg += temp2;
    387391        if(num>-100){
    388392            //警告ではなく、エラーの場合はエラーチェックフラグを立てる
    389393            extern BOOL bError;
    390394            bError=1;
    391 
    392             // ログに出力
    393             trace( "error - " << temp2 );
    394395        }
    395396        else{
    396397            extern int WarningNum;
    397398            WarningNum++;
    398 
    399             // ログに出力
    400             trace( "warning - " << temp2 );
    401         }
    402     }
     399        }
     400
     401        // ログに出力
     402        trace( msg );
     403    }
     404
     405    std::cout << msg << endl;
     406
    403407
    404408    ErrorNum++;
Note: See TracChangeset for help on using the changeset viewer.