mirror of
https://github.com/fadden/ciderpress.git
synced 2025-01-10 08:29:34 +00:00
d21ba553ab
Visual Studio figured out variadic macros around 2005, so we can finally replace the explicit-arg-count debug log macros. Also, fixed some include guards. Also, bumped version to 4.0.0d1.
48 lines
1015 B
C++
48 lines
1015 B
C++
/*
|
|
* CiderPress
|
|
* Copyright (C) 2007 by faddenSoft, LLC. All Rights Reserved.
|
|
* See the file LICENSE for distribution terms.
|
|
*/
|
|
/*
|
|
* The application object.
|
|
*/
|
|
#ifndef APP_MYAPP_H
|
|
#define APP_MYAPP_H
|
|
|
|
#include "Registry.h"
|
|
|
|
/* CiderPress version numbers */
|
|
#define kAppMajorVersion 4
|
|
#define kAppMinorVersion 0
|
|
#define kAppBugVersion 0
|
|
#define kAppDevString L"d1"
|
|
|
|
/*
|
|
* Windows application object.
|
|
*/
|
|
class MyApp: public CWinApp
|
|
{
|
|
public:
|
|
MyApp(LPCTSTR lpszAppName = NULL);
|
|
virtual ~MyApp(void);
|
|
|
|
MyRegistry fRegistry;
|
|
|
|
const WCHAR* GetExeFileName(void) const { return fExeFileName; }
|
|
const WCHAR* GetExeBaseName(void) const { return fExeBaseName; }
|
|
|
|
private:
|
|
// Overridden functions
|
|
virtual BOOL InitInstance(void);
|
|
virtual BOOL OnIdle(LONG lCount);
|
|
|
|
void LogModuleLocation(const WCHAR* name);
|
|
|
|
CString fExeFileName;
|
|
CString fExeBaseName;
|
|
};
|
|
|
|
extern MyApp gMyApp;
|
|
|
|
#endif /*APP_MYAPP_H*/
|