?? installerlog.cpp
字號:
/* * InstallerLog.cpp - part of jEditLauncher package * Copyright (C) 2001 John Gellene * jgellene@nyc.rr.com * * Notwithstanding the terms of the General Public License, the author grants * permission to compile and link object code generated by the compilation of * this program with object code and libraries that are not subject to the * GNU General Public License, provided that the executable output of such * compilation shall be distributed with source code on substantially the * same basis as the jEditLauncher package of which this program is a part. * By way of example, a distribution would satisfy this condition if it * included a working makefile for any freely available make utility that * runs on the Windows family of operating systems. This condition does not * require a licensee of this software to distribute any proprietary software * (including header files and libraries) that is licensed under terms * prohibiting redistribution to third parties. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * * $Id: InstallerLog.cpp,v 1.2 2001/12/30 08:48:31 jgellene Exp $ */#include "stdafx.h"#include "InstallerLog.h"CLtslog* InstallerLog::pLog = 0;LogArgsFunc InstallerLog::logProc = 0;HMODULE InstallerLog::hLogModule = 0;void InstallerLog::Init(){ hLogModule = LoadLibrary("ltslog.dll"); if(hLogModule != 0) { LogOpenFunc openProc = (LogOpenFunc)GetProcAddress(hLogModule, "OpenLog"); logProc = (LogArgsFunc)GetProcAddress(hLogModule, "LogArgs"); if(openProc != 0 && logProc != 0) { pLog = (openProc)("install.log", Debug); } }}void InstallerLog::Exit(){ if(pLog != 0) { LogCloseFunc closeProc = (LogCloseFunc)GetProcAddress(hLogModule, "CloseLog"); if(closeProc != 0) (closeProc)(pLog); pLog = 0; } if(hLogModule) FreeLibrary(hLogModule);}void InstallerLog::Log(MsgLevel level, const char* lpszFormat, ...){ if(lpszFormat == 0 || pLog == 0) return; va_list argList; va_start(argList, lpszFormat); (logProc)(pLog, true, level, lpszFormat, argList); va_end(argList);}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -