Fortran与VB传递字符串数据(Ⅰ)—由内建类型  

Passing string data between Fortran and VB (Ⅰ)—By built-in type

在线阅读下载全文

作  者:毕苏萍[1] 周振红[2] 张成才[2] 

机构地区:[1]郑州大学土木工程学院,河南郑州450002 [2]郑州大学水利与环境学院,河南郑州450002

出  处:《计算机工程与设计》2010年第9期2101-2104,共4页Computer Engineering and Design

基  金:河南省教育厅自然科学研究计划基金项目(2009A610014)

摘  要:为使Fortran与VB混合计算工程中的接口容纳更丰富的数据类型,研究了以内建类型为载体的字符串数据的传递。通过协调两种语言在字符串表达、存储及参数传递方面的不同,成功实施了单一字符串的传递。根据CVF字符串型函数调用机制,提出了VB调用Fortran字符串型函数的变通手段。基于对VB安全数组参数的本质认识,并通过挖掘CVF语言扩展功能,解决了字符串数组的传递。通过对Fortran 90派生类型存储结构及VB字符串成员编码的剖析,给出了含字符串派生类型数组的传递方式。结合实例验证了各种传递方法的可行性。To make an interface contain richer data types in Fortran/VB mixed-language programming computation engineering, it is researched to pass string data by built-in types. By coordinating differences in string representation, storage and argument passing for the two languages, single string is successfully passed. According to string function calling mechanism of CVF, an alternative approach is proposed to call Fortran string functions with VB. Based on the recognition of VB array argument belonging to SafeArray, plus taking full advantage of CVF language extension, it is solved to pass string arrays. By parsing the storage structure of Fortran 90 derived types and the coding of VB string components, the way to pass embedded-string derived type arrays is presented. The feasibility of abovementioned passing methods is demonstrated by demo programming.

关 键 词:混合计算工程 接口 内建类型 字符串数据 安全数组 语言扩展 派生类型或自定义类型 

分 类 号:TP311[自动化与计算机技术—计算机软件与理论]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象