// spDoc.h : interface of the CSpDoc class // ///////////////////////////////////////////////////////////////////////////// #if !defined(AFX_SPDOC_H__A74C37EB_FC36_11D3_964F_00C0F02C4B69__INCLUDED_) #define AFX_SPDOC_H__A74C37EB_FC36_11D3_964F_00C0F02C4B69__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 #include "gzk.h" /* Company: Unregistered pre-release key: 5inCIH9SBlYgVA/xFRrytDE+pDwrvn4R0Za22sALDaM = 5 tech evaluation only keycode //registration key format is: companyhash,UINTfeatures,licensecount,EVALLIMIT encrypted */ #define LICENSE_SINGLESITE 0x0001 #define LICENSE_MULTISITE 0x0002 #define LICENSE_OTHERSITE1 0x0004 #define LICENSE_OTHERSITE2 0x0008 #define LICENSE_STANDARDEVAL 0x0010 #define LICENSE_REGISTERED 0x0020 #define LICENSE_TIMELIMITEDEVAL 0x0040 #define LICENSE_METEREDEVAL 0x0080 #define LICENSE_FEATUREH 0x0100 #define LICENSE_FEATUREI 0x0200 #define LICENSE_FEATUREJ 0x0400 #define LICENSE_FEATUREK 0x0800 #define LICENSE_FEATUREL 0x1000 #define LICENSE_FEATUREM 0x2000 //so feature code 33 would translate to hex 21 //which is registered|singlesite //An eval version would be 17 which is hex 11 or //which is LICENSE_STANDARDEVAL | LICENSE_SINGLESITE class CSpDoc : public CDocument { protected: // create from serialization only CSpDoc(); DECLARE_DYNCREATE(CSpDoc) // Attributes public: CSpApp* m_pApp; // Operations public: // Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CSpDoc) public: virtual BOOL OnNewDocument(); virtual void Serialize(CArchive& ar); //}}AFX_VIRTUAL // Implementation public: void Validate(); bool Compact(bool bKeepOld); bool CopyFile(char *src, char *dest); CString m_ConnectString; CString m_DBPath; bool LocateData(); virtual ~CSpDoc(); #ifdef _DEBUG virtual void AssertValid() const; virtual void Dump(CDumpContext& dc) const; #endif protected: // Generated message map functions protected: //{{AFX_MSG(CSpDoc) // 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() }; ///////////////////////////////////////////////////////////////////////////// //{{AFX_INSERT_LOCATION}} // Microsoft Visual C++ will insert additional declarations immediately before the previous line. #endif // !defined(AFX_SPDOC_H__A74C37EB_FC36_11D3_964F_00C0F02C4B69__INCLUDED_)