--- np2/win9xc/trace.cpp 2003/11/13 15:33:06 1.2 +++ np2/win9xc/trace.cpp 2004/01/15 07:23:35 1.5 @@ -46,7 +46,6 @@ static const char ClassName[] = "TRACE-c static const char ClassEdit[] = "EDIT"; static const char traceen[] = "Enable"; static const char tracefh[] = "File out"; -static const char crlf[] = "\r\n"; static TRACEWIN tracewin; static HWND hView = NULL; @@ -93,7 +92,7 @@ static void View_AddString(const char *l strcpy(szView, p); } strcat(szView, lpszString); - strcat(szView, crlf); + strcat(szView, str_crlf); SetWindowText(hView, szView); View_ScrollToBottom(hView); } @@ -250,7 +249,7 @@ void trace_init(void) { } } - tracewin.en = 1; + tracewin.en = 0; tracewin.fh = FILEH_INVALID; tracecfg.posx = CW_USEDEFAULT; @@ -271,6 +270,7 @@ void trace_init(void) { } ShowWindow(hwnd, SW_SHOW); UpdateWindow(hwnd); + trace_fmt("start debugging..."); } void trace_term(void) { @@ -302,7 +302,7 @@ void trace_fmt(const char *fmt, ...) { } if (tracewin.fh != FILEH_INVALID) { file_write(tracewin.fh, buf, strlen(buf)); - file_write(tracewin.fh, crlf, strlen(crlf)); + file_write(tracewin.fh, str_crlf, strlen(str_crlf)); } } }