摘要
阐述了一种实现仪器菜单动态配置的方法:主应用程序调用相应的仪器菜单解析程序;解析程序解析菜单数据配置文件,并向主应用程序返回显示代码;显示代码经编译、链接,形成可执行的二进制文件;二进制文件运行后显示相应的仪器菜单。运用该方法可以方便灵活地修改仪器菜单显示界面。
An implementation of dynamically configuring instrument menu is described as follows: main application program calls the relevant interpreter of instrument menu;the interpreter parses the configuration file of menu data and returns display code to the main program;the display code is compiled and linked to generate an executable binary file;the binary file displays corresponding instrument menu when it runs.Using this method we can modify the display interface of instrument menu conveniently and flexibly.
出处
《计算机时代》
2012年第1期66-67,共2页
Computer Era