home *** CD-ROM | disk | FTP | other *** search
/ Chip 2002 June / Chip_2002-06_cd1.bin / zkuste / cecko / install / devcpp4920.exe / Templates / Dll_h.txt < prev    next >
Encoding:
Text File  |  2002-03-14  |  463 b   |  25 lines

  1. #if BUILDING_DLL
  2. # define DLLIMPORT __declspec (dllexport)
  3. #else /* Not BUILDING_DLL */
  4. # define DLLIMPORT __declspec (dllimport)
  5. #endif /* Not BUILDING_DLL */
  6.  
  7. struct DLLIMPORT
  8. DllClassBase 
  9. {
  10.   virtual int virtual_method () const;
  11. };
  12.  
  13. class DLLIMPORT
  14. DllClass : public DllClassBase 
  15. {
  16.  public:
  17.   DllClass (int i = 0);
  18.   ~DllClass ();
  19.   void non_virtual_method ();
  20.   void virtual_method ();
  21.  
  22.   static int instances;
  23.  private:
  24.   int i_;
  25. };