From df82498bac49066de65c179a31cdcd67f0128ab8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jos=C3=A9=20Fonseca?= Date: Mon, 13 Apr 2009 13:49:51 +0100 Subject: [PATCH] Open the log when the dll is loaded. --- windows.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/windows.py b/windows.py index d9b915b..dba4bca 100644 --- a/windows.py +++ b/windows.py @@ -164,6 +164,7 @@ class Dll: print r' if(!GetSystemDirectory(g_szDll, MAX_PATH))' print r' return FALSE;' print r' _tcscat(g_szDll, TEXT("\\%s.dll"));' % self.name + print r' Log::Open("%s");' % self.name print r' case DLL_THREAD_ATTACH:' print r' return TRUE;' print r' case DLL_THREAD_DETACH:' @@ -184,7 +185,7 @@ class Dll: for function in self.functions: type = 'P' + function.name print function.prototype() + ' {' - if 1: + if 0: print ' Log::Close();' print ' Log::Open("%s");' % self.name #print ' Log::ReOpen();' -- 2.45.2