摘要
由于现有的暖通空调大型计算应用程序很多是用Fortran语言编写的 ,而且Fortran语言仍将是工程计算程序的主要语言之一 ,根据这种情况 ,讨论了利用动态链接库 (DLL)进行Fortran ,VisualBasic,Excel混合语言编程 ,方便简捷地对旧有Fortran程序代码继承的问题。其中涉及 :Fortran程序DOS到Windows平台的转换 ,混编数据接口的设计 ,ExcelVBA应用程序用户界面的设计等内容。并给出该方法在“地铁环境模拟程序”(SES)中的应用实例。
In view of the fact that many existing large-scale HVAC computational applications are written in Fortran and Fortran will remain one of the major languages used in many engineering applications,discusses an easier way to inherit the existing Fortran application codes by using DLL in mixed-language programming with Fortran, Visual Basic and Excel. It includes the transference of Fortran application from DOS to Windows, the data interface design between mixed-languages and the user interface design of Excel VBA application. Gives an example of subway environment simulation (SES) using this technique.
出处
《暖通空调》
北大核心
2001年第6期76-78,共3页
Heating Ventilating & Air Conditioning
关键词
混合语言编程
代码继承
动态链接库
空调系统
mixed-language programming, inheritance of the existing application codes, DLL, large-scale computational applications