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

Displaying Data Control Binding Data Control with Manual Programming in MFC

在线阅读下载全文

作  者:刘雄鹰[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[自动化与计算机技术—计算机软件与理论]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象