摘要
wxWidgets是一个优秀的开源应用程序框架,但在基于该框架的应用程序中不能直接使用ActiveX控件。在大量开发实践的基础上,通过深入研究wxWidgets框架及COM、ActiveX控件的相关知识,提出一种在基于wxWidgets框架的应用程序中使用Ac-tiveX控件的通用方法,并将相关代码使用类进行了封装。通过实际项目的检验,该方法切实可行,封装得到的类简单易用,在相关软件开发中取得了很好的效果。
wxWidgets is an excellent open source application framework, but ActiveX control cannot be used directly in application based on the framework. Engaged in several practices of projects development, the author proposed a universal method to use ActiveX control in wxWidgets framework-based application through deep studies on wxWidgets framework and the knowledge about Com and ActiveX control. To simplify its use, the code correlative has been encapsulated into two classes. Practical software projects development has verified the method to be feasible, the classes derived from the encapsulation are simple to use, and good results have been achieved in correlated software development.
出处
《计算机应用与软件》
CSCD
2009年第10期117-121,共5页
Computer Applications and Software