Click here to Skip to main content
15,894,405 members
Articles / Programming Languages / Objective C

Date-Time Conversion Utility

Rate me:
Please Sign up or sign in to vote.
4.57/5 (14 votes)
21 Sep 20012 min read 235.1K   3.1K   40  
A simple app that converts to and between time_t, DATE, and regular date string expressions
#if !defined(AFX_DLGOPTIONS_H__C89A1A26_883B_11D5_A116_000000000000__INCLUDED_)
#define AFX_DLGOPTIONS_H__C89A1A26_883B_11D5_A116_000000000000__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// DlgOptions.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CDlgOptions dialog

class CDlgOptions : public CDialog
{
// Construction
public:
	CDlgOptions(CWnd* pParent = NULL);   // standard constructor
  void SetAutoPaste(int iAutoPaste)       { m_iAutoPaste = iAutoPaste;  }
  int  GetAutoPaste(void)                 { return m_iAutoPaste;    }
  void SetAutoConvert(BOOL bAutoConvert)  { m_bAutoConvert = bAutoConvert;  }
  BOOL GetAutoConvert(void)               { return m_bAutoConvert;  }
  void SetFullAutoConvert(int iAutoConv)  { m_iAutoConvert = iAutoConv; }
  int  GetFullAutoConvert(void)           { return m_iAutoConvert;  }

protected:
// Dialog Data
	//{{AFX_DATA(CDlgOptions)
	enum { IDD = IDD_OPTIONS };
	int		m_iAutoPaste;
	BOOL	m_bAutoConvert;
	int		m_iAutoConvert;
	//}}AFX_DATA


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CDlgOptions)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(CDlgOptions)
	afx_msg void OnApply();
	virtual BOOL OnInitDialog();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_DLGOPTIONS_H__C89A1A26_883B_11D5_A116_000000000000__INCLUDED_)

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.


Written By
Web Developer
United States United States
I've done extensive work with C++, MFC, COM, and ATL on the Windows side. On the Web side, I've worked with VB, ASP, JavaScript, and COM+. I've also been involved with server-side Java, which includes JSP, Servlets, and EJB, and more recently with ASP.NET/C#.

Comments and Discussions