Fortran与VB通过OLE变体类型传递字符串数据  

Passing string data between Fortran and VB by way of OLE variant type

在线阅读下载全文

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

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

出  处:《计算机工程与设计》2010年第10期2396-2398,2404,共4页Computer Engineering and Design

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

摘  要:为使Fortran与VB混合计算工程中的接口容纳更丰富的数据类型,研究了以OLE变体类型为载体的字符串数据的传递。在阐述了OLE变体类型结构的基础上,利用CVF对Unicode字符串的支持,成功实施了单一字符串的传递;基于对VB变体安全数组参数的本质认识,并通过挖掘CVF语言扩展功能,解决了字符串数组的传递;通过将含字符串自定义类型转换成变体数组,给出了含字符串自定义类型数组的传递方式。实例结果表明了各种传递方法的可行性。To make an interface contain richer data types in Fortran/VB mixed-language programming computation engineering,it is researched to pass string data by way of OLE variant types.On the basis of a discussion of OLE variant type structure and with the support of CVF for Unicode strings,singular string is successfully passed.Based on the essential recognition of VB variant SafeArray arguments,plus taking full advantage of CVF language extension,it is solved to pass string arrays.By converting derived types into 1-dimension variant arrays,the way is presented to pass embedded-string derived type arrays.The feasibility of above-mentioned passing methods has been examplified.

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

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

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

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