-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGRP2info.cpp
94 lines (74 loc) · 2.52 KB
/
GRP2info.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
//------------------------------------------------------------------------| GRP2info.cpp //
// | GRP2, Graphik Dialog 2 (deutsch) //
// | von Dietmar Schrausser, (C) SCHRAUSSER 2011 //
//
#include "stdafx.h"
#include "grp2.hpp"
#include "GRP2info.hpp"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
GRP2info::GRP2info(CWnd* pParent /*=NULL*/)
: CDialog(GRP2info::IDD, pParent)
{
//{{AFX_DATA_INIT(GRP2info)
m_compile = "";
//}}AFX_DATA_INIT
}
void GRP2info::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(GRP2info)
DDX_Text(pDX, IDC_EDIT_compile, m_compile);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(GRP2info, CDialog)
//{{AFX_MSG_MAP(GRP2info)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
BOOL GRP2info::OnInitDialog()
{
CDialog::OnInitDialog();
UpdateData(1); m_compile = CompileStamp(1); UpdateData(0);
return 1;
}
CString GRP2info::CompileStamp(BOOL Lngw)
{
CString c;
char ccc[20]=__DATE__;
if(Lngw == 0) // englisch
{
c ="compiled at ";
c += __DATE__;
c +=" @ ";
c += __TIME__;
}
if(Lngw == 1) // deutsch
{
c ="Compiliert am ";
c += ccc[4];
c += ccc[5];
c +=". ";
if(ccc[0]=='J' && ccc[1]== 'a' && ccc[2]== 'n' ) c += "Jänner ";
if(ccc[0]=='F' && ccc[1]== 'e' && ccc[2]== 'b' ) c += "Februar ";
if(ccc[0]=='M' && ccc[1]== 'a' && ccc[2]== 'r' ) c += "März ";
if(ccc[0]=='A' && ccc[1]== 'p' && ccc[2]== 'r' ) c += "April ";
if(ccc[0]=='M' && ccc[1]== 'a' && ccc[2]== 'y' ) c += "Mai ";
if(ccc[0]=='J' && ccc[1]== 'u' && ccc[2]== 'n' ) c += "Juni ";
if(ccc[0]=='J' && ccc[1]== 'u' && ccc[2]== 'l' ) c += "Juli ";
if(ccc[0]=='A' && ccc[1]== 'u' && ccc[2]== 'g' ) c += "August ";
if(ccc[0]=='S' && ccc[1]== 'e' && ccc[2]== 'p' ) c += "September ";
if(ccc[0]=='O' && ccc[1]== 'c' && ccc[2]== 't' ) c += "Oktober ";
if(ccc[0]=='N' && ccc[1]== 'o' && ccc[2]== 'v' ) c += "November ";
if(ccc[0]=='D' && ccc[1]== 'e' && ccc[2]== 'c' ) c += "Dezember ";
c += ccc[7];
c += ccc[8];
c += ccc[9];
c += ccc[10];
c +=" @ ";
c += __TIME__;
}
return c;
}