12345678910111213141516171819202122232425262728293031323334353637383940 |
- // CalendarConvert.h: interface for the CCalendarConvert class.
- //
- //////////////////////////////////////////////////////////////////////
- /****************************************************************************************************************
- 投稿说明:
- ****************************************************************************************************************/
- #define NOTE_CalendarConvert \
- " ◆◆◆ 说明:◆◆◆\r\n\
- 公历(阳历)和农历(阴历)相互转换,公历转农历代码是从网上当的,我做了农历转公历的代码并写了示例程序。\
- 其实网上也有很多有关公历转农历的控件,但作为一个程序员就是不太习惯于使用别人的控件,因为那样将不便调试\
- 和差错。\r\n\
- \r\n\
- ◆◆◆ 作者:◆◆◆\r\n\
- 谢红伟 · chrys · chrys@163.com · http://ndxz.126.com\r\n\
- \r\n\
- ◆◆◆ 日期:◆◆◆\r\n\
- 2006-02-16 11:40:08"
- #if !defined(AFX_CALENDARCONVERT_H__98D06A45_DA45_4309_BF79_A4AECDA1B72D__INCLUDED_)
- #define AFX_CALENDARCONVERT_H__98D06A45_DA45_4309_BF79_A4AECDA1B72D__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- class CCalendarConvert
- {
- public:
- COleDateTime ConvertSysTime2OleDateTime ( PSYSTEMTIME pSt );
- CString GetLunarString ( IN PSYSTEMTIME pSt, BOOL bEmbolism );
- BOOL Gregorian2Lunar ( IN PSYSTEMTIME pSt, OUT PSYSTEMTIME pDst, OUT BOOL *pEmbolism );
- BOOL Lunar2Gregorian ( IN PSYSTEMTIME pSt, IN BOOL bEmbolism, OUT PSYSTEMTIME pDst );
- CCalendarConvert();
- virtual ~CCalendarConvert();
- };
- #endif // !defined(AFX_CALENDARCONVERT_H__98D06A45_DA45_4309_BF79_A4AECDA1B72D__INCLUDED_)
|