期刊文献+

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

Passing string data between Fortran and VB (Ⅰ)—By built-in type
下载PDF
导出
摘要 为使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.
出处 《计算机工程与设计》 CSCD 北大核心 2010年第9期2101-2104,共4页 Computer Engineering and Design
基金 河南省教育厅自然科学研究计划基金项目(2009A610014)
关键词 混合计算工程 接口 内建类型 字符串数据 安全数组 语言扩展 派生类型或自定义类型 mixed-language programming computation engineering interface built-in type string data Safearray language extension derived type or user-defined type
  • 相关文献

参考文献6

二级参考文献21

共引文献23

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部