长江科学院院报 ›› 2008, Vol. 25 ›› Issue (4): 106-110.

• 科技简报 • 上一篇    

工程计算平台CVF的应用接口资源扩充

 颜国红, 周振红   

  • 出版日期:2008-08-01 发布日期:2012-03-05

How to Extend API in Engineering Computation Platform of CVF

 YAN  Guo-Hong, ZHOU  Zhen-Hong   

  • Online:2008-08-01 Published:2012-03-05

摘要: 在CVF平台上进行水利计算工程开发,仅通过调用系统接口资源Win32 API函数还不能完全满足其功能扩展要求,如何从Fortran用户习惯出发,用VC创建由C/C++函数构成的Win32 DLL来扩充CVF的应用接口资源,就成为一个亟待解的实际问题。对此进行较为系统的探讨,包括VC,CVF的调用约定是如何规定的,如何在二者间进行协调,如何针对Fortran 90的字符串、多维数组、派生类型设置相应的C/C++函数参数等,并通过典型示例加以说明,为VC创建供CVF调用的Win32 DLL提供了操作指南。  

关键词: 数值计算, 应用接口, 调用约定, 混合编译, 派生类型/结构体

Abstract: In developing hydraulic computation applications on Compaq Visual Fortran(CVF), only to call Win32 API functions cannot meet all the needs of its functionality extension, and thus the paper arises a problem to be solved how to create Win32 DLL made up of C/C++ functions by VC in accordance with Fortran users, in order to extend CVF API. A thorough discussion is carriedout, in which how to call conventions of VC and CVF and how to coordinate between them are given, alphabet string, multidimension array and derived type in combination with Fortran 90 are correspondingly set up in C/C++ functions, etc.. And at last, some and typical examples are presented.As a result, a developing guideline is provided for VC creating Win32 DLL suitable for CVF.