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 / rdocols.cpp < prev    next >
C/C++ Source or Header  |  1998-03-26  |  1KB  |  41 lines

  1. // Machine generated IDispatch wrapper class(es) created by Microsoft Visual C++
  2.  
  3. // NOTE: Do not modify the contents of this file.  If this class is regenerated by
  4. //  Microsoft Visual C++, your modifications will be overwritten.
  5.  
  6.  
  7. #include "stdafx.h"
  8. #include "rdocols.h"
  9.  
  10. // Dispatch interfaces referenced by this interface
  11. #include "rdoCol.h"
  12.  
  13.  
  14. /////////////////////////////////////////////////////////////////////////////
  15. // CrdoColumns properties
  16.  
  17. /////////////////////////////////////////////////////////////////////////////
  18. // CrdoColumns operations
  19.  
  20. long CrdoColumns::GetCount()
  21. {
  22.     long result;
  23.     InvokeHelper(0x1, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  24.     return result;
  25. }
  26.  
  27. void CrdoColumns::Refresh()
  28. {
  29.     InvokeHelper(0x7, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  30. }
  31.  
  32. CrdoColumn CrdoColumns::GetItem(const VARIANT& Index)
  33. {
  34.     LPDISPATCH pDispatch;
  35.     static BYTE parms[] =
  36.         VTS_VARIANT;
  37.     InvokeHelper(0x0, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&pDispatch, parms,
  38.         &Index);
  39.     return CrdoColumn(pDispatch);
  40. }
  41.