// MySqlData.cpp : implementation file // #include "stdafx.h" #include "mysqldata.h" #include "AutoRun.h" #include #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif CDatabase *g_curdb=NULL; ///////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////// IMPLEMENT_DYNAMIC(RstSendReg, CRecordset) RstSendReg::RstSendReg(CDatabase* pdb) : CRecordset(pdb) { //{{AFX_FIELD_INIT(RstSendReg) m_account = _T(""); m_phones = _T(""); m_content = _T(""); m_timestamp = _T(""); m_msgcount = _T(""); m_log = _T(""); m_status = _T(""); m_id = _T(""); m_nFields = 8; //}}AFX_FIELD_INIT this->m_pDatabase = g_curdb; m_nDefaultType = forwardOnly; m_strSort="account desc,timestamp desc,phones desc"; } CString RstSendReg::GetDefaultConnect() { return _T("ODBC;DSN="); } CString RstSendReg::GetDefaultSQL() { return _T("[sendreg]"); } void RstSendReg::DoFieldExchange(CFieldExchange* pFX) { //{{AFX_FIELD_MAP(RstSendReg) pFX->SetFieldType(CFieldExchange::outputColumn); RFX_Text(pFX, _T("[account]"), m_account); RFX_Text(pFX, _T("[phones]"), m_phones, 102400); RFX_Text(pFX, _T("[content]"), m_content, 102400); RFX_Text(pFX, _T("[timestamp]"), m_timestamp); RFX_Text(pFX, _T("[msgcount]"), m_msgcount); RFX_Text(pFX, _T("[log]"), m_log); RFX_Text(pFX, _T("[status]"), m_status); RFX_Text(pFX, _T("[autoid]"), m_id); //}}AFX_FIELD_MAP } ///////////////////////////////////////////////////////////////////////////// // RstSendReg diagnostics #ifdef _DEBUG void RstSendReg::AssertValid() const { CRecordset::AssertValid(); } void RstSendReg::Dump(CDumpContext& dc) const { CRecordset::Dump(dc); } #endif //_DEBUG