home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / mfc / database / mdibind / rdc.h < prev    next >
C/C++ Source or Header  |  1998-03-26  |  4KB  |  131 lines

  1. #ifndef __RDC_H__
  2. #define __RDC_H__
  3.  
  4. // Machine generated IDispatch wrapper class(es) created by Microsoft Visual C++
  5.  
  6. // NOTE: Do not modify the contents of this file.  If this class is regenerated by
  7. //  Microsoft Visual C++, your modifications will be overwritten.
  8.  
  9.  
  10. // Dispatch interfaces referenced by this interface
  11. class CrdoResultset;
  12.  
  13. /////////////////////////////////////////////////////////////////////////////
  14. // CRdc wrapper class
  15.  
  16. class CRdc : public CWnd
  17. {
  18. protected:
  19.     DECLARE_DYNCREATE(CRdc)
  20. public:
  21.     CLSID const& GetClsid()
  22.     {
  23.         static CLSID const clsid
  24. // CLSID for RDC1.0 (works)
  25. //          = { 0x4f5f826a, 0x8aaf, 0x11ce, { 0xa7, 0x7f, 0x8, 0x0, 0x2b, 0x2f, 0x4e, 0x98 } };
  26. // CLSID for RDC2.0 (does not work)
  27.             = { 0x43478d73, 0x78e0, 0x11cf, { 0x8e, 0x78, 0x0, 0xa0, 0xd1, 0x0, 0x3, 0x8e } };
  28.         return clsid;
  29.     }
  30.     virtual BOOL Create(LPCTSTR lpszClassName,
  31.         LPCTSTR lpszWindowName, DWORD dwStyle,
  32.         const RECT& rect,
  33.         CWnd* pParentWnd, UINT nID,
  34.         CCreateContext* pContext = NULL)
  35.     { return CreateControl(GetClsid(), lpszWindowName, dwStyle, rect, pParentWnd, nID); }
  36.  
  37.     BOOL Create(LPCTSTR lpszWindowName, DWORD dwStyle,
  38.         const RECT& rect, CWnd* pParentWnd, UINT nID,
  39.         CFile* pPersist = NULL, BOOL bStorage = FALSE,
  40.         BSTR bstrLicKey = NULL)
  41.     { return CreateControl(GetClsid(), lpszWindowName, dwStyle, rect, pParentWnd, nID,
  42.         pPersist, bStorage, bstrLicKey); }
  43.  
  44. // Attributes
  45. public:
  46.  
  47. // Operations
  48. public:
  49.     CString GetDataSourceName();
  50.     void SetDataSourceName(LPCTSTR lpszNewValue);
  51.     CString GetSql();
  52.     void SetSql(LPCTSTR lpszNewValue);
  53.     long GetLoginTimeout();
  54.     void SetLoginTimeout(long nNewValue);
  55.     CString GetVersion();
  56.     CString GetConnect();
  57.     void SetConnect(LPCTSTR lpszNewValue);
  58.     long GetQueryTimeout();
  59.     void SetQueryTimeout(long nNewValue);
  60.     long GetRowsetSize();
  61.     void SetRowsetSize(long nNewValue);
  62.     long GetResultsetType();
  63.     void SetResultsetType(long nNewValue);
  64.     long GetMaxRows();
  65.     void SetMaxRows(long nNewValue);
  66.     CString GetLogMessages();
  67.     void SetLogMessages(LPCTSTR lpszNewValue);
  68.     long GetKeysetSize();
  69.     void SetKeysetSize(long nNewValue);
  70.     short GetEditMode();
  71.     void SetEditMode(short nNewValue);
  72.     BOOL GetEnabled();
  73.     void SetEnabled(BOOL bNewValue);
  74.     CrdoResultset GetResultset();
  75.     void SetRefResultset(LPDISPATCH newValue);
  76.     BOOL GetReadOnly();
  77.     void SetReadOnly(BOOL bNewValue);
  78.     short GetOptions();
  79.     void SetOptions(short nNewValue);
  80.     CString GetUserName_();
  81.     void SetUserName(LPCTSTR lpszNewValue);
  82.     CString GetPassword();
  83.     void SetPassword(LPCTSTR lpszNewValue);
  84.     long GetCursorDriver();
  85.     void SetCursorDriver(long nNewValue);
  86.     LPDISPATCH GetFont();
  87.     void SetRefFont(LPDISPATCH newValue);
  88.     LPDISPATCH GetConnection();
  89.     void SetRefConnection(LPDISPATCH newValue);
  90.     long GetEOFAction();
  91.     void SetEOFAction(long nNewValue);
  92.     long GetBOFAction();
  93.     void SetBOFAction(long nNewValue);
  94.     long GetErrorThreshold();
  95.     void SetErrorThreshold(long nNewValue);
  96.     long GetLockType();
  97.     void SetLockType(long nNewValue);
  98.     long GetPrompt();
  99.     void SetPrompt(long nNewValue);
  100.     long GetAppearance();
  101.     void SetAppearance(long nNewValue);
  102.     LPDISPATCH GetEnvironment();
  103.     void SetRefEnvironment(LPDISPATCH newValue);
  104.     CString GetCaption();
  105.     void SetCaption(LPCTSTR lpszNewValue);
  106.     unsigned long GetBackColor();
  107.     void SetBackColor(unsigned long newValue);
  108.     unsigned long GetForeColor();
  109.     void SetForeColor(unsigned long newValue);
  110.     long GetBatchCollisionCount();
  111.     VARIANT GetBatchCollisionRows();
  112.     long GetBatchSize();
  113.     void SetBatchSize(long nNewValue);
  114.     short GetUpdateOperation();
  115.     void SetUpdateOperation(short nNewValue);
  116.     short GetUpdateCriteria();
  117.     void SetUpdateCriteria(short nNewValue);
  118.     void UpdateControls();
  119.     void UpdateRow();
  120.     void BeginTrans();
  121.     void CommitTrans();
  122.     void RollbackTrans();
  123.     void Cancel();
  124.     void Refresh();
  125. };
  126.  
  127. //{{AFX_INSERT_LOCATION}}
  128. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  129.  
  130. #endif // __RDC_H__
  131.