motable.cpp
资源名称:MoLecture.rar [点击查看]
上传用户:qinfarui
上传日期:2022-08-10
资源大小:362k
文件大小:2k
源码类别:
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 "motable.h"
- // Dispatch interfaces referenced by this interface
- #include "MoRecordset.h"
- /////////////////////////////////////////////////////////////////////////////
- // CMoTable properties
- CString CMoTable::GetUser()
- {
- CString result;
- GetProperty(0x1, VT_BSTR, (void*)&result);
- return result;
- }
- void CMoTable::SetUser(LPCTSTR propVal)
- {
- SetProperty(0x1, VT_BSTR, propVal);
- }
- CString CMoTable::GetPassword()
- {
- CString result;
- GetProperty(0x2, VT_BSTR, (void*)&result);
- return result;
- }
- void CMoTable::SetPassword(LPCTSTR propVal)
- {
- SetProperty(0x2, VT_BSTR, propVal);
- }
- CString CMoTable::GetDatabase()
- {
- CString result;
- GetProperty(0x3, VT_BSTR, (void*)&result);
- return result;
- }
- void CMoTable::SetDatabase(LPCTSTR propVal)
- {
- SetProperty(0x3, VT_BSTR, propVal);
- }
- CString CMoTable::GetName()
- {
- CString result;
- GetProperty(0x4, VT_BSTR, (void*)&result);
- return result;
- }
- void CMoTable::SetName(LPCTSTR propVal)
- {
- SetProperty(0x4, VT_BSTR, propVal);
- }
- CMoRecordset CMoTable::GetRecords()
- {
- LPDISPATCH pDispatch;
- GetProperty(0x6, VT_DISPATCH, (void*)&pDispatch);
- return CMoRecordset(pDispatch);
- }
- void CMoTable::SetRecords(LPDISPATCH propVal)
- {
- SetProperty(0x6, VT_DISPATCH, propVal);
- }
- CString CMoTable::GetServer()
- {
- CString result;
- GetProperty(0x5, VT_BSTR, (void*)&result);
- return result;
- }
- void CMoTable::SetServer(LPCTSTR propVal)
- {
- SetProperty(0x5, VT_BSTR, propVal);
- }
- /////////////////////////////////////////////////////////////////////////////
- // CMoTable operations
- CMoRecordset CMoTable::SearchExpression(LPCTSTR expression)
- {
- LPDISPATCH pDispatch;
- static BYTE parms[] =
- VTS_BSTR;
- InvokeHelper(0x7, DISPATCH_METHOD, VT_DISPATCH, (void*)&pDispatch, parms,
- expression);
- return CMoRecordset(pDispatch);
- }