home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / mfc / internet / wwwquote / queries.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-03-27  |  3.1 KB  |  116 lines

  1. // Queries.h : header file
  2. //
  3. // This is a part of the Microsoft Foundation Classes C++ library.
  4. // Copyright (C) 1992-1998 Microsoft Corporation
  5. // All rights reserved.
  6. //
  7. // This source code is only intended as a supplement to the
  8. // Microsoft Foundation Classes Reference and related
  9. // electronic documentation provided with the library.
  10. // See these sources for detailed information regarding the
  11. // Microsoft Foundation Classes product.
  12.  
  13. /////////////////////////////////////////////////////////////////////////////
  14. // CIssueQuery recordset
  15.  
  16. class CIssueQuery : public CRecordset
  17. {
  18. public:
  19.     CIssueQuery(CDatabase* pDatabase, BOOL bByCUSIP);
  20.     DECLARE_DYNAMIC(CIssueQuery)
  21.  
  22. // Field/Param Data
  23.     //{{AFX_FIELD(CIssueQuery, CRecordset)
  24.     CString m_strCUSIP;
  25.     CString m_strName;
  26.     //}}AFX_FIELD
  27.     CString m_strTicker;
  28.     BOOL m_bByCUSIP;
  29.  
  30. // Overrides
  31.     // ClassWizard generated virtual function overrides
  32.     //{{AFX_VIRTUAL(CIssueQuery)
  33.     public:
  34.     virtual CString GetDefaultConnect();    // Default connection string
  35.     virtual CString GetDefaultSQL();    // Default SQL for Recordset
  36.     virtual void DoFieldExchange(CFieldExchange* pFX);  // RFX support
  37.     //}}AFX_VIRTUAL
  38.  
  39. // Implementation
  40. #ifdef _DEBUG
  41.     virtual void AssertValid() const;
  42.     virtual void Dump(CDumpContext& dc) const;
  43. #endif
  44. };
  45.  
  46. /////////////////////////////////////////////////////////////////////////////
  47. // CQuoteQuery recordset
  48.  
  49. class CQuoteQuery : public CRecordset
  50. {
  51. public:
  52.     CQuoteQuery(CDatabase* pdb, LPCTSTR strTicker, int nMonth, int nYear);
  53.     DECLARE_DYNAMIC(CQuoteQuery)
  54.  
  55. // Field/Param Data
  56.     //{{AFX_FIELD(CQuoteQuery, CRecordset)
  57.     CTime   m_Date;
  58.     long    m_Volume;
  59.     CString m_HighAsk;
  60.     CString m_LowBid;
  61.     CString m_CloseAvg;
  62.     //}}AFX_FIELD
  63.  
  64.     int m_nYear;
  65.     int m_nMonth;
  66.     CString m_strTicker;
  67.  
  68. // Overrides
  69.     // ClassWizard generated virtual function overrides
  70.     //{{AFX_VIRTUAL(CQuoteQuery)
  71.     public:
  72.     virtual CString GetDefaultConnect();    // Default connection string
  73.     virtual CString GetDefaultSQL();    // Default SQL for Recordset
  74.     virtual void DoFieldExchange(CFieldExchange* pFX);  // RFX support
  75.     //}}AFX_VIRTUAL
  76.  
  77. // Implementation
  78. #ifdef _DEBUG
  79.     virtual void AssertValid() const;
  80.     virtual void Dump(CDumpContext& dc) const;
  81. #endif
  82. };
  83.  
  84. /////////////////////////////////////////////////////////////////////////////
  85. // CRangeQuery recordset
  86.  
  87. class CRangeQuery : public CRecordset
  88. {
  89. public:
  90.     CRangeQuery(CDatabase* pDatabase, LPCTSTR pszTicker);
  91.     DECLARE_DYNAMIC(CRangeQuery)
  92.  
  93. // Field/Param Data
  94.     //{{AFX_FIELD(CRangeQuery, CRecordset)
  95.     //}}AFX_FIELD
  96.     CTime   m_tMin;
  97.     CTime   m_tMax;
  98.  
  99.     CString m_strTicker;
  100.  
  101. // Overrides
  102.     // ClassWizard generated virtual function overrides
  103.     //{{AFX_VIRTUAL(CRangeQuery)
  104.     public:
  105.     virtual CString GetDefaultConnect();    // Default connection string
  106.     virtual CString GetDefaultSQL();    // Default SQL for Recordset
  107.     virtual void DoFieldExchange(CFieldExchange* pFX);  // RFX support
  108.     //}}AFX_VIRTUAL
  109.  
  110. // Implementation
  111. #ifdef _DEBUG
  112.     virtual void AssertValid() const;
  113.     virtual void Dump(CDumpContext& dc) const;
  114. #endif
  115. };
  116.