Changeset 828 in dev for trunk/ab5.0/abdev/BasicCompiler_Common/BasicCompiler.cpp
- Timestamp:
- Mar 19, 2012, 1:59:48 AM (13 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
-
Property svn:mergeinfo
set to
/branches/egtra merged eligible
-
Property svn:mergeinfo
set to
-
trunk/ab5.0/abdev
-
Property svn:ignore
set to
*.opensdf
*.sdf
*.suo
*.user
int
ipch
out
-
Property svn:ignore
set to
-
trunk/ab5.0/abdev/BasicCompiler_Common/BasicCompiler.cpp
r773 r828 253 253 } 254 254 255 BOOL GetFilePathDialog(HWND hwnd,char *filename,LP STR Filter,LPSTR Title,BOOL bOpen){255 BOOL GetFilePathDialog(HWND hwnd,char *filename,LPCSTR Filter,LPCSTR Title,BOOL bOpen){ 256 256 OPENFILENAME ofstr; 257 257 filename[0]=0; … … 325 325 //生成するファイルの相対パスを取得 326 326 char relationalPath[MAX_PATH]; 327 lstrcpy( relationalPath, program.GetOutputFilePath().c_str() );327 strcpy( relationalPath, program.GetOutputFilePath().c_str() ); 328 328 GetRelationalPath( relationalPath, BasicCurDir ); 329 329 … … 375 375 SetWindowPos(hwnd,0,x,y,0,0,SWP_NOSIZE); 376 376 } 377 BOOLCALLBACK DlgCompile(HWND hwnd,UINT message,WPARAM wParam,LPARAM lParam){377 INT_PTR CALLBACK DlgCompile(HWND hwnd,UINT message,WPARAM wParam,LPARAM lParam){ 378 378 extern HANDLE hDebugProcess; 379 extern DWORD processIdDebug; 379 380 char temporary[MAX_PATH]; 380 381 RECT rect; … … 444 445 TerminateProcess(hDebugProcess,0); 445 446 hDebugProcess=0; 447 processIdDebug = 0; 446 448 447 449 //デバッグダイアログを終了 … … 475 477 TerminateProcess(hDebugProcess,0); 476 478 hDebugProcess=0; 479 processIdDebug = 0; 477 480 478 481 //デバッグダイアログを終了 … … 587 590 588 591 // グローバルローケルを日本語にする 589 std::locale::global(std::locale("japanese"));590 _setmode(_fileno(stdout), _O_BINARY);592 //std::locale::global(std::locale("japanese")); 593 //_setmode(_fileno(stdout), _O_BINARY); 591 594 592 595 //_Test(); … … 642 645 if( program.IsDebugRun() || compiler.IsDebug() ) 643 646 { 644 lstrcat(tempOutputFileName,"_debug.abobj");647 strcat(tempOutputFileName,"_debug.abobj"); 645 648 } 646 649 else 647 650 { 648 lstrcat(tempOutputFileName,".abobj");651 strcat(tempOutputFileName,".abobj"); 649 652 } 650 653 } … … 653 656 if( program.IsDebugRun() || compiler.IsDebug() ) 654 657 { 655 lstrcat(tempOutputFileName,"_debug.exe");658 strcat(tempOutputFileName,"_debug.exe"); 656 659 } 657 660 else 658 661 { 659 lstrcat(tempOutputFileName,".exe");662 strcat(tempOutputFileName,".exe"); 660 663 } 661 664 } … … 719 722 } 720 723 if(temporary[i]){ 721 lstrcpy(szDebugCmdLine,temporary+i+2);724 strcpy(szDebugCmdLine,temporary+i+2); 722 725 } 723 726 } 724 727 725 728 _splitpath( program.GetSourceFilePath().c_str(), BasicCurDir,temporary,NULL,NULL); 726 lstrcat(BasicCurDir,temporary);729 strcat(BasicCurDir,temporary); 727 730 728 731 if( program.IsClipCompileView() ){ 729 732 //ProjectEditor埋め込み型インターフェイス 730 hMainDlg=CreateDialog(hInst, MAKEINTRESOURCE(IDD_CLIPMAIN),hOwnerEditor,(DLGPROC)DlgCompile);733 hMainDlg=CreateDialog(hInst, MAKEINTRESOURCE(IDD_CLIPMAIN), hOwnerEditor, DlgCompile); 731 734 ShowWindow(hMainDlg,SW_SHOW); 732 735 SendMessage(hOwnerEditor,WM_SETCOMPILEVIEW,0,(LPARAM)hMainDlg); … … 759 762 trace("Complete ActiveBasic Compiler!"); 760 763 761 ExitProcess( program.GetExitCode() ); 762 return 0; 764 return program.GetExitCode(); 763 765 } 764 766 else … … 770 772 771 773 //エラーリストをサブクラス化 772 OldErrorListProc=(WNDPROC)GetWindowLongPtr(GetDlgItem(hMainDlg,IDC_ERRORLIST),GWLP_WNDPROC); 773 SetWindowLongPtr(GetDlgItem(hMainDlg,IDC_ERRORLIST),GWLP_WNDPROC,(LONG_PTR)ErrorListProc); 774 OldErrorListProc = reinterpret_cast<WNDPROC>(SetWindowLongPtr(GetDlgItem(hMainDlg, IDC_ERRORLIST), GWLP_WNDPROC, reinterpret_cast<LONG_PTR>(ErrorListProc))); 774 775 775 776 //デバッグリストをサブクラス化 776 OldDebugListProc=(WNDPROC)GetWindowLongPtr(GetDlgItem(hMainDlg,IDC_DEBUGLIST),GWLP_WNDPROC); 777 SetWindowLongPtr(GetDlgItem(hMainDlg,IDC_DEBUGLIST),GWLP_WNDPROC,(LONG_PTR)DebugListProc); 777 OldDebugListProc = reinterpret_cast<WNDPROC>(SetWindowLongPtr(GetDlgItem(hMainDlg, IDC_DEBUGLIST), GWLP_WNDPROC, reinterpret_cast<LONG_PTR>(DebugListProc))); 778 778 779 779 if( program.IsKickedFromEditor() ) … … 804 804 trace("Complete ActiveBasic Compiler!"); 805 805 806 ExitProcess( program.GetExitCode() ); 807 808 return 0; 809 } 806 return program.GetExitCode(); 807 }
Note:
See TracChangeset
for help on using the changeset viewer.