--- np2/win9x/debuguty/viewer.cpp 2003/10/21 11:22:05 1.2 +++ np2/win9x/debuguty/viewer.cpp 2005/03/19 20:46:07 1.7 @@ -3,12 +3,13 @@ #include "np2.h" #include "viewer.h" #include "viewcmn.h" -#include "i286.h" +#include "cpucore.h" -static char np2viewclass[] = "NP2-ViewWindow"; - NP2VIEW_T np2view[NP2VIEW_MAX]; -extern HINSTANCE hInst; +static const TCHAR np2viewclass[] = _T("NP2-ViewWindow"); + const TCHAR np2viewfont[] = _T("£Í£Ó ¥´¥·¥Ã¥¯"); + NP2VIEW_T np2view[NP2VIEW_MAX]; +extern HINSTANCE hInst; static void viewer_segmode(HWND hwnd, BYTE type) { @@ -202,7 +203,7 @@ BOOL viewer_init(HINSTANCE hPreInst) { np2vc.hIcon = LoadIcon(hInst, MAKEINTRESOURCE(IDI_ICON2)); np2vc.hCursor = LoadCursor(NULL, IDC_ARROW); np2vc.hbrBackground = (HBRUSH)0; - np2vc.lpszMenuName = MAKEINTRESOURCE(IDM_VIEW); + np2vc.lpszMenuName = MAKEINTRESOURCE(IDR_VIEW); np2vc.lpszClassName = np2viewclass; if (!RegisterClass(&np2vc)) { return(FAILURE); @@ -225,7 +226,7 @@ void viewer_open(void) { view = np2view; for (i=0; ialive) { - char buf[256]; + OEMCHAR buf[256]; viewcmn_caption(view, buf); ZeroMemory(view, sizeof(NP2VIEW_T)); view->alive = TRUE; @@ -275,8 +276,8 @@ static DWORD last = 0; for (i=0; ialive) && (!view->lock)) { if (view->type == VIEWMODE_ASM) { - view->seg = I286_CS; - view->off = I286_IP; + view->seg = CPU_CS; + view->off = CPU_IP; view->pos = 0; viewcmn_setvscroll(view->hwnd, view); }