检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
作 者:刘雄鹰[1]
机构地区:[1]中南大学信息科学与工程学院,湖南长沙410075
出 处:《电脑与信息技术》2012年第4期49-51,共3页Computer and Information Technology
摘 要:MFC数据库应用编程时,主要使用应用程序向导产生的记录集类和记录视类,或者使用MFC类库提供的有关类两种方式编程,没有充分利用现有的ActiveX控件。因为许多ActiveX绑定数据控件与ADO数据控件不能自动协调工作即不能正确显示数据,如TextBox、DataCombo及DTPICKER;有一些ADO控件方法在对应的访问对象中没有提供,如不带参数的AddNew方法。手工绑定数据控件方式使ActiveX控件之间失去的自动协调得以恢复。使用ActiveX控件编程,代码的重用性大大提高,程序界面质量进一步的好转。MFC database application programming ways are mostly the one using the classes of recordset and view created by application wizard and the another using related classes provided by MFC library. Because many displaying data controls can not coordinate with data control automatically in MFC, it is that displaying data controls can not show the data rightly, available ActiveX controls are not fidly made use of in the two programming ways, such as TextBox,DataCombo as well as DTPICKER. controls, some ADO data control's methods is not implemented by ADO access object, such as the AddNew method with no parameter. By the way of manual programming of binding data to controls, the lost automatic harmony within the controls is restored. The Progranmming fully with ActiveX controls increases code reusability and causes application interaction quality to be gotten better further.
关 键 词:Ⅵsualc++ MicrosoftFoundationClass(MFC) 数据库应用编 AddNew ActiveX数据绑定控件 ActiveXDataObjecu(ADO)
分 类 号:TP311.131[自动化与计算机技术—计算机软件与理论]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:216.73.216.33