資源簡介
公歷(陽歷)和農歷(陰歷)相互轉換,公歷轉農歷代碼是從網上當的,我做了農歷轉公歷的代碼并寫了示例程序。其實網上也有很多有關公歷轉農歷的控件,但作為一個程序員就是不太習慣于使用別人的控件,因為那樣將不便調試和差錯。
代碼片段和文件信息
//?CalendarConv.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“CalendarConv.h“
#include?“CalendarConvDlg.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CCalendarConvApp
BEGIN_MESSAGE_MAP(CCalendarConvApp?CWinApp)
//{{AFX_MSG_MAP(CCalendarConvApp)
//?NOTE?-?the?ClassWizard?will?add?and?remove?mapping?macros?here.
//????DO?NOT?EDIT?what?you?see?in?these?blocks?of?generated?code!
//}}AFX_MSG
ON_COMMAND(ID_HELP?CWinApp::onhelp)
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
//?CCalendarConvApp?construction
CCalendarConvApp::CCalendarConvApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CCalendarConvApp?object
CCalendarConvApp?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CCalendarConvApp?initialization
BOOL?CCalendarConvApp::InitInstance()
{
AfxEnableControlContainer();
//?Standard?initialization
//?If?you?are?not?using?these?features?and?wish?to?reduce?the?size
//??of?your?final?executable?you?should?remove?from?the?following
//??the?specific?initialization?routines?you?do?not?need.
#ifdef?_AFXDLL
Enable3dControls(); //?Call?this?when?using?MFC?in?a?shared?DLL
#else
Enable3dControlsStatic(); //?Call?this?when?linking?to?MFC?statically
#endif
CCalendarConvDlg?dlg;
m_pMainWnd?=?&dlg;
int?nResponse?=?dlg.DoModal();
if?(nResponse?==?IDOK)
{
//?TODO:?Place?code?here?to?handle?when?the?dialog?is
//??dismissed?with?OK
}
else?if?(nResponse?==?IDCANCEL)
{
//?TODO:?Place?code?here?to?handle?when?the?dialog?is
//??dismissed?with?Cancel
}
//?Since?the?dialog?has?been?closed?return?FALSE?so?that?we?exit?the
//??application?rather?than?start?the?application‘s?message?pump.
return?FALSE;
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????2145??2006-03-09?09:05??代碼中國.txt
?????目錄??????????0??2006-03-21?10:52??57578863公歷(陽歷)和農歷(陰歷)相互轉換
?????文件???????1635??2006-02-16?12:24??57578863公歷(陽歷)和農歷(陰歷)相互轉換\CalendarConv.plg
?????目錄??????????0??2006-02-16?09:12??57578863公歷(陽歷)和農歷(陰歷)相互轉換\res
?????文件???????1078??2006-02-16?09:12??57578863公歷(陽歷)和農歷(陰歷)相互轉換\res\CalendarConv.ico
?????文件????????404??2006-02-16?09:12??57578863公歷(陽歷)和農歷(陰歷)相互轉換\res\CalendarConv.rc2
?????文件??????36128??2006-02-16?11:47??57578863公歷(陽歷)和農歷(陰歷)相互轉換\CalendarConv.aps
?????文件???????1492??2006-02-16?12:24??57578863公歷(陽歷)和農歷(陰歷)相互轉換\CalendarConv.clw
?????文件???????2147??2006-02-16?09:12??57578863公歷(陽歷)和農歷(陰歷)相互轉換\CalendarConv.cpp
?????文件???????4413??2006-02-16?11:34??57578863公歷(陽歷)和農歷(陰歷)相互轉換\CalendarConv.dsp
?????文件????????549??2006-02-16?09:12??57578863公歷(陽歷)和農歷(陰歷)相互轉換\CalendarConv.dsw
?????文件???????1390??2006-02-16?09:12??57578863公歷(陽歷)和農歷(陰歷)相互轉換\CalendarConv.h
?????文件??????58368??2006-02-16?12:27??57578863公歷(陽歷)和農歷(陰歷)相互轉換\CalendarConv.ncb
?????文件??????49664??2006-02-16?12:27??57578863公歷(陽歷)和農歷(陰歷)相互轉換\CalendarConv.opt
?????目錄??????????0??2006-02-16?12:27??57578863公歷(陽歷)和農歷(陰歷)相互轉換\Debug
?????文件?????118856??2006-02-16?12:24??57578863公歷(陽歷)和農歷(陰歷)相互轉換\Debug\CalendarConv.exe
?????文件???????5928??2006-02-16?11:47??57578863公歷(陽歷)和農歷(陰歷)相互轉換\CalendarConv.rc
?????文件???????6795??2006-02-16?11:46??57578863公歷(陽歷)和農歷(陰歷)相互轉換\CalendarConvDlg.cpp
?????文件???????1874??2006-02-16?11:10??57578863公歷(陽歷)和農歷(陰歷)相互轉換\CalendarConvDlg.h
?????文件???????5950??2006-02-16?11:18??57578863公歷(陽歷)和農歷(陰歷)相互轉換\CalendarConvert.cpp
?????文件???????1549??2006-02-16?12:24??57578863公歷(陽歷)和農歷(陰歷)相互轉換\CalendarConvert.h
?????文件???????3687??2006-02-16?09:12??57578863公歷(陽歷)和農歷(陰歷)相互轉換\ReadMe.txt
?????文件????????874??2006-02-16?11:46??57578863公歷(陽歷)和農歷(陰歷)相互轉換\resource.h
?????文件????????214??2006-02-16?09:12??57578863公歷(陽歷)和農歷(陰歷)相互轉換\StdAfx.cpp
?????文件???????1054??2006-02-16?09:12??57578863公歷(陽歷)和農歷(陰歷)相互轉換\StdAfx.h
-----------?---------??----------?-----??----
???????????????306194????????????????????25
- 上一篇:Delphi反編譯工具的源碼
- 下一篇:教室課程管理系統源代碼
評論
共有 條評論