期刊文献+

MFC中显示数据控件手工编程绑定数据控件 被引量:2

Displaying Data Control Binding Data Control with Manual Programming in MFC
下载PDF
导出
摘要 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.
作者 刘雄鹰
出处 《电脑与信息技术》 2012年第4期49-51,共3页 Computer and Information Technology
关键词 Ⅵsualc++ MicrosoftFoundationClass(MFC) 数据库应用编 AddNew ActiveX数据绑定控件 ActiveXDataObjecu(ADO) Visual c++ Microso Foundation Class (MFC) DataBase Application programming AddNew ActiveX bindingdata control ActiveX Data Objects (ADO)
  • 相关文献

参考文献2

  • 1扬长兴,韩滨,刘雄鹰,等.VisualBasic程序设计教程[M].北京:中国铁道出版社,2011.
  • 2李存军,朱鑫,梁世庆.Visualc++6.0编程[M].成都:电子科技大学出版社,1999.

同被引文献7

引证文献2

二级引证文献7

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部