使用soui开发的mbc,只支持windows版本
w1146869587
2022-01-24 0408576e9da10015ffa9da0079b8c985113ce4b3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
// dbCursor.cpp : implementation file
//
 
#include "stdafx.h"
#include "mbamdb.h"
#include "dbCursor.h"
 
 
// CdbCursor
 
CdbCursor::CdbCursor()
{
    m_ARecordSet.Close( );
 
    m_pAConnect = NULL;
    m_strSQL    = _T("");
}
 
CdbCursor::~CdbCursor()
{
    if(m_pAConnect)
        m_pAConnect->Release();
}
 
 
// CdbCursor member functions
bool CdbCursor::MoveFirst( )
{
    HRESULT        bReturn;
 
    bReturn = m_ARecordSet.MoveFirst( );
    if ( S_OK != bReturn )
        return false;
    GetData( );
    return true;
}
 
bool CdbCursor::MovePrev( )
{
    HRESULT        bReturn;
 
    bReturn = m_ARecordSet.MovePrev( );
    if ( S_OK != bReturn )
        return false;
 
    GetData( );
    return true;
}
 
bool CdbCursor::MoveNext( )
{
    HRESULT        bReturn;
    
    bReturn = m_ARecordSet.MoveNext( );
    if ( S_OK != bReturn )
        return false;
 
    GetData( );
    return true;
}
 
bool CdbCursor::GetData( )
{
    return true;
}
 
bool CdbCursor::MoveTo( long nPos )
{
    HRESULT        bReturn;
    
    bReturn = m_ARecordSet.MoveTo( nPos );
    if ( S_OK != bReturn )
        return false;
 
    GetData( );
    return true;
}