motabledesc.cpp
资源名称:MoLecture.rar [点击查看]
上传用户:qinfarui
上传日期:2022-08-10
资源大小:362k
文件大小:3k
源码类别:
GIS编程
开发平台:
Visual C++
- // Machine generated IDispatch wrapper class(es) created by Microsoft Visual C++
- // NOTE: Do not modify the contents of this file. If this class is regenerated by
- // Microsoft Visual C++, your modifications will be overwritten.
- #include "stdafx.h"
- #include "motabledesc.h"
- /////////////////////////////////////////////////////////////////////////////
- // CMoTableDesc properties
- short CMoTableDesc::GetFieldCount()
- {
- short result;
- GetProperty(0x1, VT_I2, (void*)&result);
- return result;
- }
- void CMoTableDesc::SetFieldCount(short propVal)
- {
- SetProperty(0x1, VT_I2, propVal);
- }
- long CMoTableDesc::GetCodePage()
- {
- long result;
- GetProperty(0x2, VT_I4, (void*)&result);
- return result;
- }
- void CMoTableDesc::SetCodePage(long propVal)
- {
- SetProperty(0x2, VT_I4, propVal);
- }
- /////////////////////////////////////////////////////////////////////////////
- // CMoTableDesc operations
- CString CMoTableDesc::GetFieldName(short index)
- {
- CString result;
- static BYTE parms[] =
- VTS_I2;
- InvokeHelper(0x3, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, parms,
- index);
- return result;
- }
- void CMoTableDesc::SetFieldName(short index, LPCTSTR lpszNewValue)
- {
- static BYTE parms[] =
- VTS_I2 VTS_BSTR;
- InvokeHelper(0x3, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
- index, lpszNewValue);
- }
- long CMoTableDesc::GetFieldType(short index)
- {
- long result;
- static BYTE parms[] =
- VTS_I2;
- InvokeHelper(0x4, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, parms,
- index);
- return result;
- }
- void CMoTableDesc::SetFieldType(short index, long nNewValue)
- {
- static BYTE parms[] =
- VTS_I2 VTS_I4;
- InvokeHelper(0x4, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
- index, nNewValue);
- }
- short CMoTableDesc::GetFieldPrecision(short index)
- {
- short result;
- static BYTE parms[] =
- VTS_I2;
- InvokeHelper(0x5, DISPATCH_PROPERTYGET, VT_I2, (void*)&result, parms,
- index);
- return result;
- }
- void CMoTableDesc::SetFieldPrecision(short index, short nNewValue)
- {
- static BYTE parms[] =
- VTS_I2 VTS_I2;
- InvokeHelper(0x5, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
- index, nNewValue);
- }
- short CMoTableDesc::GetFieldLength(short index)
- {
- short result;
- static BYTE parms[] =
- VTS_I2;
- InvokeHelper(0x6, DISPATCH_PROPERTYGET, VT_I2, (void*)&result, parms,
- index);
- return result;
- }
- void CMoTableDesc::SetFieldLength(short index, short nNewValue)
- {
- static BYTE parms[] =
- VTS_I2 VTS_I2;
- InvokeHelper(0x6, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
- index, nNewValue);
- }
- short CMoTableDesc::GetFieldScale(short index)
- {
- short result;
- static BYTE parms[] =
- VTS_I2;
- InvokeHelper(0x7, DISPATCH_PROPERTYGET, VT_I2, (void*)&result, parms,
- index);
- return result;
- }
- void CMoTableDesc::SetFieldScale(short index, short nNewValue)
- {
- static BYTE parms[] =
- VTS_I2 VTS_I2;
- InvokeHelper(0x7, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
- index, nNewValue);
- }