• 大小: 4.73MB
    文件类型: .rar
    金币: 2
    下载: 1 次
    发布日期: 2023-09-21
  • 语言: C/C++
  • 标签: 数据库  MFC  access  

资源简介

运行程序前需要添加数据源ODBC。 方法:开始--设置--控制面板--管理工具--数据源ODBC。打开后:添加--Driver do Microsoft Access(*.mdb)--输入数据源名:DMS

资源截图

代码片段和文件信息

//DataBinding.cpp

#include “stdafx.h“
#include “DataBinding.h“

void CDevCodeRs::FillFieldsArray(COleSafeArray& vaFieldlist COleSafeArray& vaValuelist)
{
vaFieldlist.CreateOneDim(VT_VARIANT2);
long lArrayIndex[1];
lArrayIndex[0] = 0;
vaFieldlist.PutElement(lArrayIndex &(_variant_t(“code“)));
lArrayIndex[0] = 1;
    vaFieldlist.PutElement(lArrayIndex &(_variant_t(“name“)));

vaValuelist.CreateOneDim(VT_VARIANT2);
lArrayIndex[0] = 0;
vaValuelist.PutElement(lArrayIndex &(_variant_t(m_sz_code)));
lArrayIndex[0] = 1;
vaValuelist.PutElement(lArrayIndex &(_variant_t(m_sz_name)));
}

void CDevNeedRs::FillFieldsArray(COleSafeArray& vaFieldlist COleSafeArray& vaValuelist)
{
vaFieldlist.CreateOneDim(VT_VARIANT5);
long lArrayIndex[1];
lArrayIndex[0] = 0;
vaFieldlist.PutElement(lArrayIndex &(_variant_t(“code“)));
lArrayIndex[0] = 1;
    vaFieldlist.PutElement(lArrayIndex &(_variant_t(“department“)));
lArrayIndex[0] = 2;
vaFieldlist.PutElement(lArrayIndex &(_variant_t(“begin_date“)));
lArrayIndex[0] = 3;
    vaFieldlist.PutElement(lArrayIndex &(_variant_t(“end_date“)));
lArrayIndex[0] = 4;
vaFieldlist.PutElement(lArrayIndex &(_variant_t(“need_number“)));

vaValuelist.CreateOneDim(VT_VARIANT5);
lArrayIndex[0] = 0;
vaValuelist.PutElement(lArrayIndex &(_variant_t(m_sz_code)));
lArrayIndex[0] = 1;
vaValuelist.PutElement(lArrayIndex &(_variant_t(m_sz_dept)));
lArrayIndex[0] = 2;
vaValuelist.PutElement(lArrayIndex &(_variant_t(m_sz_start)));
lArrayIndex[0] = 3;
vaValuelist.PutElement(lArrayIndex &(_variant_t(m_sz_end)));
lArrayIndex[0] = 4;
vaValuelist.PutElement(lArrayIndex &(_variant_t(m_sz_number)));
}

void CDevRs::FillFieldsArray(COleSafeArray& vaFieldlist COleSafeArray& vaValuelist)
{
vaFieldlist.CreateOneDim(VT_VARIANT5);
long lArrayIndex[1];
lArrayIndex[0] = 0;
vaFieldlist.PutElement(lArrayIndex &(_variant_t(“code“)));
lArrayIndex[0] = 1;
    vaFieldlist.PutElement(lArrayIndex &(_variant_t(“now_number“)));
lArrayIndex[0] = 2;
vaFieldlist.PutElement(lArrayIndex &(_variant_t(“high_number“)));
lArrayIndex[0] = 3;
    vaFieldlist.PutElement(lArrayIndex &(_variant_t(“low_number“)));
lArrayIndex[0] = 4;
vaFieldlist.PutElement(lArrayIndex &(_variant_t(“total_number“)));

vaValuelist.CreateOneDim(VT_VARIANT5);
lArrayIndex[0] = 0;
vaValuelist.PutElement(lArrayIndex &(_variant_t(m_sz_code)));
lArrayIndex[0] = 1;
vaValuelist.PutElement(lArrayIndex &(_variant_t(m_f_cur)));
lArrayIndex[0] = 2;
vaValuelist.PutElement(lArrayIndex &(_variant_t(m_f_max)));
lArrayIndex[0] = 3;
vaValuelist.PutElement(lArrayIndex &(_variant_t(m_f_min)));
lArrayIndex[0] = 4;
vaValuelist.PutElement(lArrayIndex &(_variant_t(m_f_total)));
}

void CDevRetRs::FillFieldsArray(COleSafeArray& vaFieldlist COleSafeArray& vaValuelist)
{
vaFieldlist.CreateOneDim(VT_VARIANT5);
long lArrayIndex[1];
lArrayIndex[0] = 0;
vaFieldlist.PutEleme

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       8570  2011-06-22 10:06  代码\DataBinding.cpp

     文件       8053  2011-06-22 10:06  代码\dataBinding.h

     文件       6846  2005-03-03 22:14  代码\DlgDev.cpp

     文件       1597  2005-03-03 22:14  代码\DlgDev.h

     文件       4287  2005-03-03 22:14  代码\DlgDevAlert.cpp

     文件       1537  2005-03-03 22:14  代码\DlgDevAlert.h

     文件       4006  2005-03-03 22:14  代码\DlgDevcode.cpp

     文件       1596  2005-03-03 22:14  代码\DlgDevcode.h

     文件       4741  2005-03-03 22:14  代码\DlgDevIn.cpp

     文件       1513  2005-03-03 22:14  代码\DlgDevIn.h

     文件       3424  2005-03-03 22:14  代码\DlgDevNeed.cpp

     文件       1478  2005-03-03 22:14  代码\DlgDevNeed.h

     文件       5543  2005-03-03 22:14  代码\DlgDevOut.cpp

     文件       1595  2005-03-03 22:14  代码\DlgDevOut.h

     文件       4030  2005-03-03 22:14  代码\DlgDevRet.cpp

     文件       1486  2005-03-03 22:14  代码\DlgDevRet.h

     文件       1015  2011-06-08 11:43  代码\DlgLogIn.cpp

     文件       1227  2005-03-03 22:14  代码\DlgLogIn.h

     文件       2895  2005-03-03 22:14  代码\DlgProxy.cpp

     文件       1606  2005-03-03 22:14  代码\DlgProxy.h

     文件       5325  2005-03-03 22:14  代码\DlgReport.cpp

     文件       1613  2005-03-03 22:14  代码\DlgReport.h

     文件       5817  2005-03-03 22:14  代码\DlgViewDevIn.cpp

     文件       1684  2005-03-03 22:14  代码\DlgViewDevIn.h

     文件       3284  2005-03-03 22:14  代码\DlgViewLog.cpp

     文件       1490  2005-03-03 22:14  代码\DlgViewLog.h

     文件       3796  2005-03-03 22:14  代码\DlgViewNeed.cpp

     文件       1598  2005-03-03 22:14  代码\DlgViewNeed.h

     文件       5861  2005-03-03 22:14  代码\DlgViewOut.cpp

     文件       1670  2005-03-03 22:14  代码\DlgViewOut.h

............此处省略94个文件信息

评论

共有 条评论