home *** CD-ROM | disk | FTP | other *** search
- // DAOEMP.h : main header file for the DAOEMP application
- //
-
- #include <dbdao.h> //DAO Classes
-
- #ifndef __AFXWIN_H__
- #error include 'stdafx.h' before including this file for PCH
- #endif
-
- #include "resource.h" // main symbols
-
-
- /////////////////////////////////////////////////////////////////////////////
- // Conversion macros/inline functions - Variant
-
- // Convert a variant to a string (only if it's already a string variant)
- inline void VarToCStr(CString *c, COleVariant *v)
- {
- if(v->vt==VT_BSTR)
- {
- *c = (LPCTSTR)v->bstrVal;
- }
- else
- {
- *c = _T("");
- }
- }
-
- #define VTOLONG(v) ((v).vt==VT_I4 ? (LONG)(v).iVal:0L)
- #define VTODATE(v) ((v).vt==VT_DATE ? (CTime)(v).iVal:0L)
-
-
- /////////////////////////////////////////////////////////////////////////////
- // CDAOEMPApp:
- // See DAOEMP.cpp for the implementation of this class
- //
-
- class CDAOEMPApp : public CWinApp
- {
- public:
- CDAOEMPApp();
-
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CDAOEMPApp)
- public:
- virtual BOOL InitInstance();
- //}}AFX_VIRTUAL
-
- // Implementation
-
- //{{AFX_MSG(CDAOEMPApp)
- afx_msg void OnAppAbout();
- // NOTE - the ClassWizard will add and remove member functions here.
- // DO NOT EDIT what you see in these blocks of generated code !
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
-
-
- /////////////////////////////////////////////////////////////////////////////
-