motable.cpp
上传用户:qinfarui
上传日期:2022-08-10
资源大小:362k
文件大小:2k
源码类别:

GIS编程

开发平台:

Visual C++

  1. // Machine generated IDispatch wrapper class(es) created by Microsoft Visual C++
  2. // NOTE: Do not modify the contents of this file.  If this class is regenerated by
  3. //  Microsoft Visual C++, your modifications will be overwritten.
  4. #include "stdafx.h"
  5. #include "motable.h"
  6. // Dispatch interfaces referenced by this interface
  7. #include "MoRecordset.h"
  8. /////////////////////////////////////////////////////////////////////////////
  9. // CMoTable properties
  10. CString CMoTable::GetUser()
  11. {
  12. CString result;
  13. GetProperty(0x1, VT_BSTR, (void*)&result);
  14. return result;
  15. }
  16. void CMoTable::SetUser(LPCTSTR propVal)
  17. {
  18. SetProperty(0x1, VT_BSTR, propVal);
  19. }
  20. CString CMoTable::GetPassword()
  21. {
  22. CString result;
  23. GetProperty(0x2, VT_BSTR, (void*)&result);
  24. return result;
  25. }
  26. void CMoTable::SetPassword(LPCTSTR propVal)
  27. {
  28. SetProperty(0x2, VT_BSTR, propVal);
  29. }
  30. CString CMoTable::GetDatabase()
  31. {
  32. CString result;
  33. GetProperty(0x3, VT_BSTR, (void*)&result);
  34. return result;
  35. }
  36. void CMoTable::SetDatabase(LPCTSTR propVal)
  37. {
  38. SetProperty(0x3, VT_BSTR, propVal);
  39. }
  40. CString CMoTable::GetName()
  41. {
  42. CString result;
  43. GetProperty(0x4, VT_BSTR, (void*)&result);
  44. return result;
  45. }
  46. void CMoTable::SetName(LPCTSTR propVal)
  47. {
  48. SetProperty(0x4, VT_BSTR, propVal);
  49. }
  50. CMoRecordset CMoTable::GetRecords()
  51. {
  52. LPDISPATCH pDispatch;
  53. GetProperty(0x6, VT_DISPATCH, (void*)&pDispatch);
  54. return CMoRecordset(pDispatch);
  55. }
  56. void CMoTable::SetRecords(LPDISPATCH propVal)
  57. {
  58. SetProperty(0x6, VT_DISPATCH, propVal);
  59. }
  60. CString CMoTable::GetServer()
  61. {
  62. CString result;
  63. GetProperty(0x5, VT_BSTR, (void*)&result);
  64. return result;
  65. }
  66. void CMoTable::SetServer(LPCTSTR propVal)
  67. {
  68. SetProperty(0x5, VT_BSTR, propVal);
  69. }
  70. /////////////////////////////////////////////////////////////////////////////
  71. // CMoTable operations
  72. CMoRecordset CMoTable::SearchExpression(LPCTSTR expression)
  73. {
  74. LPDISPATCH pDispatch;
  75. static BYTE parms[] =
  76. VTS_BSTR;
  77. InvokeHelper(0x7, DISPATCH_METHOD, VT_DISPATCH, (void*)&pDispatch, parms,
  78. expression);
  79. return CMoRecordset(pDispatch);
  80. }