diff options
author | danglassey <danglassey> | 2002-08-14 09:55:38 +0000 |
---|---|---|
committer | danglassey <danglassey> | 2002-08-14 09:55:38 +0000 |
commit | 6d6973e035aac5ec1676efccd5b8ada70c40b639 (patch) | |
tree | 4e92da327f60a083fe610e6b68d016434653b5b4 /apps/windoze/swwinlog.cpp | |
parent | c9458897ebbb739d8db83c80e06512d8a612f743 (diff) | |
download | sword-sf-cvs-6d6973e035aac5ec1676efccd5b8ada70c40b639.tar.gz |
Initial import for syncing from crosswire CVS
Diffstat (limited to 'apps/windoze/swwinlog.cpp')
-rw-r--r-- | apps/windoze/swwinlog.cpp | 74 |
1 files changed, 0 insertions, 74 deletions
diff --git a/apps/windoze/swwinlog.cpp b/apps/windoze/swwinlog.cpp deleted file mode 100644 index cf7d8e8..0000000 --- a/apps/windoze/swwinlog.cpp +++ /dev/null @@ -1,74 +0,0 @@ -//--------------------------------------------------------------------------- -#include <vcl\vcl.h> -#pragma hdrstop - -#include "swwinlog.h" -#include <stdio.h> -#include <conio.h> -#include <stdarg.h> -//--------------------------------------------------------------------------- - -SWWinLog::SWWinLog(HWND iparent) : SWLog() { - parent = iparent; -} - - -void SWWinLog::LogWarning(char *fmt, ...) -{ - char msg[2048]; - va_list argptr; - - if (logLevel >= 2) { - va_start(argptr, fmt); - vsprintf(msg, fmt, argptr); - va_end(argptr); - - MessageBox(NULL, msg, "Warning", MB_OK); - } -} - - -void SWWinLog::LogError(char *fmt, ...) -{ - char msg[2048]; - va_list argptr; - - if (logLevel) { - va_start(argptr, fmt); - vsprintf(msg, fmt, argptr); - va_end(argptr); - - MessageBox(NULL, msg, "Error", MB_OK); - } -} - - -void SWWinLog::LogTimedInformation(char *fmt, ...) -{ - char msg[2048]; - va_list argptr; - - if (logLevel >= 4) { - va_start(argptr, fmt); - vsprintf(msg, fmt, argptr); - va_end(argptr); - - MessageBox(NULL, msg, "Information...", MB_OK); - - } -} - - -void SWWinLog::LogInformation(char *fmt, ...) -{ - char msg[2048]; - va_list argptr; - - if (logLevel >= 3) { - va_start(argptr, fmt); - vsprintf(msg, fmt, argptr); - va_end(argptr); - - MessageBox(NULL, msg, "Information", MB_OK); - } -} |