摘要
ActiveX控件是一种使用COM/DCOM的软件构件在网络环境中进行交互的技术。它使应用程序间不仅能共享数据,还能共享功能。为此,在中国人学习英语软件开发中,用Director 8.0完成屏幕取词,用ActiveX控件实现由VC++ 6.0建立的知识库间的跨平台连接。其做法是,在VC++ 6.0下构造ActiveX控件,并将知识库的各种类拷贝到ActiveX控件。文件读写则通过序列化函数Serialize实现,其过程是:屏幕取词后,通过关键词,由ActiveX控件判断Iskeywordin和读取Getkeyword,最后检索并显示出与关键词对应的知识点。
ActiveX control is a technology based on COM/DCOM soft structure, which makes application programs share not only data but also function in the Internet. Director8.0 is used to get word from screen and ActiveX control is used to bridge the gap between Director8.0 and knowledge base made by VC++6.0 in developing the application program of Chinese learning English. In the program, the ActiveX control is made by VC++6.0 and all the classes of the knowledge base are copied to the ActiveX control. Reading file is achieved by the function of Serialize. After getting the keyword from screen, the ActiveX control uses the function of Iskeywordin to make sure whether or not the keyword is in the knowledge base and the function of Getkeyword to read knowledge relevant to this keyword. At last, knowledge relevant to this keyword is displayed on screen.
出处
《兵工自动化》
2003年第1期49-51,共3页
Ordnance Industry Automation