Changeset 697 in dev for trunk/ab5.0/abdev/abdev/src


Ignore:
Timestamp:
Jul 19, 2008, 9:03:01 PM (16 years ago)
Author:
イグトランス (egtra)
Message:

エディタの2重オープンチェックの厳密化。abdevからコンパイラへのHWNDの受け渡しを64ビット対応へ。

Location:
trunk/ab5.0/abdev/abdev/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/ab5.0/abdev/abdev/src/MainFrame.cpp

    r655 r697  
    171171}
    172172
    173 ::LRESULT MainFrame::OnCreate( ::UINT msg, ::WPARAM wParam, ::LPARAM lParam, ::BOOL& handled )
     173::LRESULT MainFrame::OnCreate( ::CREATESTRUCT const* )
    174174{
    175175    // ウィンドウエリアマネージャに親ウィンドウを登録
     
    207207    extern WNDPROC oldMainFrameWndProc;
    208208    oldMainFrameWndProc = (WNDPROC)::GetWindowLong( hOwner, GWL_WNDPROC );
    209     ::SetWindowLong( hOwner, GWL_WNDPROC, (LONG)WindowFunc );
     209    ::SetWindowLongPtr( hOwner, GWL_WNDPROC, reinterpret_cast<LONG_PTR>(WindowFunc) );
    210210
    211211    SetupWindow(hOwner);
     
    517517void MainFrame::OnDropFiles( HDROP hDropInfo )
    518518{
    519     int max = DragQueryFile(hDropInfo,-1,0,0);
     519    int max = DragQueryFile(hDropInfo,static_cast<DWORD>(-1),0,0);
    520520    for(int i=0;i<max;i++){
    521521        char temporary[1024];
     
    526526}
    527527
    528 void MainFrame::OnPaint( HDC dummy )
     528void MainFrame::OnPaint( HDC )
    529529{
    530530    PAINTSTRUCT ps;
     
    10961096void CreateProcessWithStdHandle( const std::string &appPath, const std::string &cmdLine)
    10971097{
    1098     std::string argsStr = (std::string)"\"" + appPath + "\" " + cmdLine;
     1098    std::string argsStr = "\"" + appPath + "\" " + cmdLine;
    10991099    STARTUPINFO si;
    11001100    PROCESS_INFORMATION pi;
     
    11431143
    11441144        if(IsNeedCompileForProject(1))
    1145             sprintf(temporary,"\"%s\" \"%s\" /debug /run /wnd:%08x",temp2,temp3,m_hWnd);
     1145            sprintf(temporary,"\"%s\" \"%s\" /debug /run /wnd:%p",temp2,temp3,m_hWnd);
    11461146        else
    1147             sprintf(temporary,"\"%s\" \"%s\" /run /wnd:%08x",temp2,temp3,m_hWnd);
     1147            sprintf(temporary,"\"%s\" \"%s\" /run /wnd:%p",temp2,temp3,m_hWnd);
    11481148
    11491149        // DLLオプション
     
    11691169        if(!SetRunning(hChild)) return;
    11701170        if(IsNeedCompile(MdiInfo[GetWndNum(hChild)]->path,1))
    1171             sprintf(temporary,"\"%s\" /debug /run /wnd:%08x",MdiInfo[GetWndNum(hChild)]->path.c_str(),m_hWnd);
     1171            sprintf(temporary,"\"%s\" /debug /run /wnd:%p",MdiInfo[GetWndNum(hChild)]->path.c_str(),m_hWnd);
    11721172        else
    1173             sprintf(temporary,"\"%s\" /run /wnd:%08x",MdiInfo[GetWndNum(hChild)]->path.c_str(),m_hWnd);
     1173            sprintf(temporary,"\"%s\" /run /wnd:%p",MdiInfo[GetWndNum(hChild)]->path.c_str(),m_hWnd);
    11741174
    11751175        //ブレークポイントをセーブ
     
    12201220        lstrcpy( temp3, projectInfo.GetWorkDir().GetFullPath( temp3 ).c_str() );
    12211221
    1222         sprintf(temporary,"\"%s\" \"%s\" /debug /wnd:%08x",temp2,temp3,m_hWnd);
     1222        sprintf(temporary,"\"%s\" \"%s\" /debug /wnd:%p",temp2,temp3,m_hWnd);
    12231223
    12241224        //DLLオプション
     
    12401240        //単独ソースコード
    12411241        if(!SetRunning(hChild)) return;
    1242         sprintf(temporary,"\"%s\" /debug /wnd:%08x",MdiInfo[GetWndNum(hChild)]->path.c_str(),m_hWnd);
     1242        sprintf(temporary,"\"%s\" /debug /wnd:%p",MdiInfo[GetWndNum(hChild)]->path.c_str(),m_hWnd);
    12431243    }
    12441244
     
    12821282    if(idProcess==0) return;
    12831283
    1284     sprintf(temporary,"/attach:%08x /wnd:%08x",idProcess,m_hWnd);
     1284    sprintf(temporary,"/attach:%08x /wnd:%p",idProcess,m_hWnd);
    12851285
    12861286    //コンパイルビューをクリップするかどうか
     
    13401340        lstrcpy( temp3, projectInfo.GetWorkDir().GetFullPath( temp3 ).c_str() );
    13411341
    1342         sprintf(temporary,"\"%s\" \"%s\" /wnd:%08x",temp2,temp3,m_hWnd);
     1342        sprintf(temporary,"\"%s\" \"%s\" /wnd:%p",temp2,temp3,m_hWnd);
    13431343
    13441344        //DLLオプション
     
    13601360        //単独ソースコード
    13611361        if(!SetRunning(hChild)) return;
    1362         sprintf(temporary,"\"%s\" /wnd:%08x",MdiInfo[GetWndNum(hChild)]->path.c_str(),m_hWnd);
     1362        sprintf(temporary,"\"%s\" /wnd:%p",MdiInfo[GetWndNum(hChild)]->path.c_str(),m_hWnd);
    13631363    }
    13641364
     
    17071707        {
    17081708            HWND hChild=::GetWindow(hClient,GW_CHILD);
    1709             int WndNum=GetWndNum(hChild);
    17101709
    17111710            TC_ITEM tcItem;
  • trunk/ab5.0/abdev/abdev/src/ProjectManager/ProjectManager.cpp

    r655 r697  
    55void OpenWorkfile( const std::string &path );
    66
    7 void Project::Load( char *path )
     7void Project::Load( char const *path )
    88{
    99    extern HANDLE hHeap;
Note: See TracChangeset for help on using the changeset viewer.