home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Source Code / Visual Basic Source Code.iso / vbsource / dtime / data.1 / Dtime.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-07-08  |  2.0 KB  |  54 lines

  1. /*
  2. Module : DTIME.H
  3. Purpose: Defines the interface to all DateTime components
  4. Created: PJN / DATE/1 / 23-02-1996
  5. History: None
  6.  
  7. Copyright (c) 1996 by PJ Naughter.  
  8. All rights reserved.
  9.  
  10. */
  11.  
  12. #ifndef __DTIME_H__
  13.  
  14.  
  15. ////////////////////////////////// Macros /////////////////////////////////////
  16.  
  17. #define __DTIME_H__
  18.  
  19. #ifndef __cplusplus
  20.   #error Requires C++ compilation (use a .cpp suffix)
  21. #endif                 
  22.  
  23.  
  24.  
  25. ////////////////////////////////// Includes ///////////////////////////////////
  26. #include "win32sup.h"      //Aids to compile on Win16 and Win32 and Dos
  27. #include "datetime.h"      //Underlying date & time classes
  28.  
  29. #ifdef _WINDOWS    //UI classes/functions only available when compiling on Windows
  30. #include "pushpin.h"       //Push pin button
  31. #include "dentry.h"        //data entry routines
  32. #endif
  33.  
  34.  
  35. //////////////////////////////// Global functions /////////////////////////////
  36.  
  37. void AFX_EXT_API EXPORT16 InitDTime();         //Should be called prior to using DTime 
  38.                                                //You would usually call this at the start of
  39.                                                //InitInstance(), main() or wmain()
  40.                                                
  41. void AFX_EXT_API EXPORT16 TermDTime();         //Should be called after using DTime
  42.                                                //You would usually call this in ExitInstance
  43.                                                //or at the end of main() or wmain()
  44.  
  45. WORD AFX_EXT_API EXPORT16 GetDTimeVersion();   //returns the current version of the classes 
  46.                                                //currently 0x0110, major version = HIBYTE = 1
  47.                                                //major version = LOBYTE = 10
  48.  
  49. BOOL AFX_EXT_API EXPORT16 InitDTimeSettings(); //Initialise static members from registry (Win32)
  50.                                                //or environment variables (Win16 or Dos)
  51.  
  52.  
  53.  
  54. #endif //__DTIME_H__