王炎舜



摘 要:在某型产品研制过程中,其性能指标需要进行全面测试。过去,测试结果通常采用手工填写方式,但是存在效率低、费时费力、容易出错等问题。本研究采用对象链接与嵌入技术,在VC++平台下操作Excel表格,实现产品测试结果的批量输出和图表绘制功能,大幅度提升某型产品测试数据输出的准确性,提高产品测试数据分析及交付效率。
关键词:对象链接与嵌入技术;VC++;测试数据输出
中图分类号:TP311文献标识码:A文章编号:1003-5168(2020)08-0031-03
Application of Object Linking and Embedding Technology
in Product Test Output
WANG Yanshun
(China Air-to-Air Missile Research Institute,Luoyang Henan 471000)
Abstract: During the development of a certain type of product, its performance indicators need to be thoroughly tested. In the past, test results were usually filled in manually, but there were problems such as low efficiency, time-consuming and labor-intensive, and error-prone. This research used object linking and embedding technology to operate Excel tables under the VC ++ platform to realize the batch output and chart drawing functions of product test results, greatly improving the accuracy of product test data output, and improving the efficiency of product test data analysis and delivery.
Keywords: object linking and embedding technology;VC ++;test data output
某型产品具有复杂的技术指标体系,性能测试期间会产生包含大量参数的测试文件,人们需要将测试数據填写到测试记录Excel表格中。针对同一批次产品的测试数据,人们需要编写数据分析报告;对于各产品某些关键数据,需要绘制散图类型的图表来分析该批次产品质量情况。以往采用手动方式将测试数据填入测试记录卡并绘制测试数据散点图,任务量大,效率低且容易出错。本文采用对象链接与嵌入(Object Linking and Embedding,OLE)技术,最终实现产品测试记录自动化填写及测试数据图表生成。
1 OLE技术简介
OLE技术是一种交互进程间的通信技术,可以使开发者利用封装好的对象进行程序间的信息传递与操作,已逐渐发展成为一种基于对象的动态交互组件规范。该技术利用组件对象模型(COM)完成不同程序间的访问与操作,可以使组件自身的对象与其方法被方便地调用[1]。在该技术中,被调用方是OLE服务器端,调用方是客户端(或容器),调用的各个项目是OLE对象[2]。……