首页 | 本学科首页   官方微博 | 高级检索  
     

基于txt文件快速实现C#与Fortran混合编程
引用本文:郑晖.基于txt文件快速实现C#与Fortran混合编程[J].计算机与数字工程,2010,38(10):146-149.
作者姓名:郑晖
作者单位:中国科学院测量与地球物理研究所动力大地测量学重点实验室,武汉,430077;中国科学院研究生院,北京,100049
基金项目:中国科学院知识创新工程重要方向项目 
摘    要:将Fortran控制台应用程序制作成Fortran动态链接库文件,使用C#语言开发软件界面并调用Fortran DLL实现混合编程。给出了C#语言和Fortran语言混合编程时需要注意的要点。结合示例介绍了一种利用txt文件快速实现C#和Fortran混合编程的方法。该方法只需要对Fortran源代码做较小的修改就能有效地实现两种语言的混合编程,此方法对其他不同语言之间的混合编程提供了一种参考思路。

关 键 词:混合编程  DLL  C#  Fortran  txt  DllImport

Express Implementation Mixed Programming Between C# and Fortran Using Txt File
Zheng Hui.Express Implementation Mixed Programming Between C# and Fortran Using Txt File[J].Computer and Digital Engineering,2010,38(10):146-149.
Authors:Zheng Hui
Affiliation:Zheng Hui),)(Key Laboratory of Dynamic Geodesy,Institute of Geodesy and Geophysics,CAS1),Wuhan430077)(Graduate School of the Chinese Academy of Sciences2),Beijing100049)
Abstract:Transform Fortran console application into Fortran dynamic-link library file,Mixed-Language Programming can be implemented by using C # develop user interface and call the Fortran DLL.Main points of mixed language programming between C # and Fortran are discussed and presented.An express implementation method is introduced by using txt file and an example is constructed to demonstrate the mixed programming.This method achieve the goal of mixture programming effectively by making small changes to the Fortran source code,as well as providing a reference method to other Mixed-Language Programming.
Keywords:DLL  C#  Fortran  txt  DllImport
本文献已被 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号