?? installdata.h
字號(hào):
/* * InstallData.h - 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: InstallData.h,v 1.10 2002/02/19 03:33:44 jgellene Exp $ */#if !defined(__INSTALLIMPL_H__)#define __INSTALLIMPL_H__#include "resource.h"template<int MAJORVER, int MINORVER, int IDVER, int RANGE, int IDVERNAME>struct InstallVerData{ static enum { Version = (MAJORVER << 16) | MINORVER, MajorVersion = MAJORVER, MinorVersion = MINORVER, IDCurrentGUID = IDVER, IDSubjectVerName = IDVERNAME };};// version specific elementstypedef InstallVerData<4, 0, IDS_JEL_VERSION_02, 8, IDS_JEL_VERSIONNAME_03> InstallCurVerData;// end version-specifc elementsstruct InstallData{ WTL::CString strJavaHome, strInstallDir, strInstallName, strInstallFinalPath, strOldPath, strInstallGUID, strInstallVersion, strApp, strVersionLabel; bool bRebootRequired, bUsingTempFileName, bIsWinNT, bIs32, bIs40, bIsCurrent32, bIsCurrent40, bIsCtxMenuInstalled, bInstallCtxMenu; InstallData(const char* szJavaHome, const char* szInstallPath) : strJavaHome(szJavaHome), strInstallDir(szInstallPath), strInstallName(_T("jeshlstb.dl_")), strInstallGUID((LPCSTR)InstallCurVerData::IDCurrentGUID), strInstallVersion((LPCSTR)InstallCurVerData::IDSubjectVerName), strApp(_T("jEditLauncher")), strVersionLabel(_T("jEditVersion")), bRebootRequired(false), bUsingTempFileName(true), bIsWinNT(false), bIs32(false), bIs40(false), bIsCurrent32(false), bIsCurrent40(false), bIsCtxMenuInstalled(false), bInstallCtxMenu(true) {} ~InstallData() {} bool Init(); static bool CompareVersion(LPCTSTR szPath); static bool GetVersion(const TCHAR* szPath, DWORD *pdwms, DWORD *pdwls); static void ShortenToDirectory(TCHAR* lpszPath); static void OSErrorMsgBox(LPCTSTR szHeader, UINT nMsg, UINT nType); static DWORD GetBufferByteLen(const WTL::CString& str);#if defined(_DEBUG) void Dump();#endif};#endif // if !defined(__INSTALLIMPL_H__)
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -