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

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 "motabledesc.h"
  6. /////////////////////////////////////////////////////////////////////////////
  7. // CMoTableDesc properties
  8. short CMoTableDesc::GetFieldCount()
  9. {
  10. short result;
  11. GetProperty(0x1, VT_I2, (void*)&result);
  12. return result;
  13. }
  14. void CMoTableDesc::SetFieldCount(short propVal)
  15. {
  16. SetProperty(0x1, VT_I2, propVal);
  17. }
  18. long CMoTableDesc::GetCodePage()
  19. {
  20. long result;
  21. GetProperty(0x2, VT_I4, (void*)&result);
  22. return result;
  23. }
  24. void CMoTableDesc::SetCodePage(long propVal)
  25. {
  26. SetProperty(0x2, VT_I4, propVal);
  27. }
  28. /////////////////////////////////////////////////////////////////////////////
  29. // CMoTableDesc operations
  30. CString CMoTableDesc::GetFieldName(short index)
  31. {
  32. CString result;
  33. static BYTE parms[] =
  34. VTS_I2;
  35. InvokeHelper(0x3, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, parms,
  36. index);
  37. return result;
  38. }
  39. void CMoTableDesc::SetFieldName(short index, LPCTSTR lpszNewValue)
  40. {
  41. static BYTE parms[] =
  42. VTS_I2 VTS_BSTR;
  43. InvokeHelper(0x3, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  44.  index, lpszNewValue);
  45. }
  46. long CMoTableDesc::GetFieldType(short index)
  47. {
  48. long result;
  49. static BYTE parms[] =
  50. VTS_I2;
  51. InvokeHelper(0x4, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, parms,
  52. index);
  53. return result;
  54. }
  55. void CMoTableDesc::SetFieldType(short index, long nNewValue)
  56. {
  57. static BYTE parms[] =
  58. VTS_I2 VTS_I4;
  59. InvokeHelper(0x4, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  60.  index, nNewValue);
  61. }
  62. short CMoTableDesc::GetFieldPrecision(short index)
  63. {
  64. short result;
  65. static BYTE parms[] =
  66. VTS_I2;
  67. InvokeHelper(0x5, DISPATCH_PROPERTYGET, VT_I2, (void*)&result, parms,
  68. index);
  69. return result;
  70. }
  71. void CMoTableDesc::SetFieldPrecision(short index, short nNewValue)
  72. {
  73. static BYTE parms[] =
  74. VTS_I2 VTS_I2;
  75. InvokeHelper(0x5, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  76.  index, nNewValue);
  77. }
  78. short CMoTableDesc::GetFieldLength(short index)
  79. {
  80. short result;
  81. static BYTE parms[] =
  82. VTS_I2;
  83. InvokeHelper(0x6, DISPATCH_PROPERTYGET, VT_I2, (void*)&result, parms,
  84. index);
  85. return result;
  86. }
  87. void CMoTableDesc::SetFieldLength(short index, short nNewValue)
  88. {
  89. static BYTE parms[] =
  90. VTS_I2 VTS_I2;
  91. InvokeHelper(0x6, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  92.  index, nNewValue);
  93. }
  94. short CMoTableDesc::GetFieldScale(short index)
  95. {
  96. short result;
  97. static BYTE parms[] =
  98. VTS_I2;
  99. InvokeHelper(0x7, DISPATCH_PROPERTYGET, VT_I2, (void*)&result, parms,
  100. index);
  101. return result;
  102. }
  103. void CMoTableDesc::SetFieldScale(short index, short nNewValue)
  104. {
  105. static BYTE parms[] =
  106. VTS_I2 VTS_I2;
  107. InvokeHelper(0x7, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  108.  index, nNewValue);
  109. }