Ignore:
Timestamp:
Feb 12, 2011, 3:52:13 AM (13 years ago)
Author:
イグトランス (egtra)
Message:

文字列のconst化など

File:
1 edited

Legend:

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

    r806 r808  
    253253}
    254254
    255 BOOL GetFilePathDialog(HWND hwnd,char *filename,LPSTR Filter,LPSTR Title,BOOL bOpen){
     255BOOL GetFilePathDialog(HWND hwnd,char *filename,LPCSTR Filter,LPCSTR Title,BOOL bOpen){
    256256    OPENFILENAME ofstr;
    257257    filename[0]=0;
     
    375375    SetWindowPos(hwnd,0,x,y,0,0,SWP_NOSIZE);
    376376}
    377 BOOL CALLBACK DlgCompile(HWND hwnd,UINT message,WPARAM wParam,LPARAM lParam){
     377INT_PTR CALLBACK DlgCompile(HWND hwnd,UINT message,WPARAM wParam,LPARAM lParam){
    378378    extern HANDLE hDebugProcess;
    379379    extern DWORD processIdDebug;
     
    645645            if( program.IsDebugRun() || compiler.IsDebug() )
    646646            {
    647                 lstrcat(tempOutputFileName,"_debug.abobj");
     647                strcat(tempOutputFileName,"_debug.abobj");
    648648            }
    649649            else
    650650            {
    651                 lstrcat(tempOutputFileName,".abobj");
     651                strcat(tempOutputFileName,".abobj");
    652652            }
    653653        }
     
    656656            if( program.IsDebugRun() || compiler.IsDebug() )
    657657            {
    658                 lstrcat(tempOutputFileName,"_debug.exe");
     658                strcat(tempOutputFileName,"_debug.exe");
    659659            }
    660660            else
    661661            {
    662                 lstrcat(tempOutputFileName,".exe");
     662                strcat(tempOutputFileName,".exe");
    663663            }
    664664        }
     
    722722        }
    723723        if(temporary[i]){
    724             lstrcpy(szDebugCmdLine,temporary+i+2);
     724            strcpy(szDebugCmdLine,temporary+i+2);
    725725        }
    726726    }
    727727
    728728    _splitpath( program.GetSourceFilePath().c_str(), BasicCurDir,temporary,NULL,NULL);
    729     lstrcat(BasicCurDir,temporary);
     729    strcat(BasicCurDir,temporary);
    730730
    731731    if( program.IsClipCompileView() ){
     
    762762            trace("Complete ActiveBasic Compiler!");
    763763
    764             ExitProcess( program.GetExitCode() );
    765             return 0;
     764            return program.GetExitCode();
    766765        }
    767766        else
     
    805804    trace("Complete ActiveBasic Compiler!");
    806805
    807     ExitProcess( program.GetExitCode() );
    808 
    809     return 0;
    810 }
     806    return program.GetExitCode();
     807}
Note: See TracChangeset for help on using the changeset viewer.