Fortran与VC++混合编程研究及其应用  被引量:9

Fortran/Visual C++ Mixed-Language Programs Study and Its Application

在线阅读下载全文

作  者:陈江宁[1] 王和平[1] 

机构地区:[1]西北工业大学,西安710072

出  处:《微计算机应用》2007年第6期644-647,共4页Microcomputer Applications

摘  要:论述了Visual C++和Fortran混合编程技术,重点介绍了动态连接库方法。阐明了如何用Compaq Visual Fortran6.5生成动态连接库,Visual C++6.0如何调用所生成的动态连接库的方法。探讨了Visual C++6.0如何与Fortran在调用约定、命名约定、参数传递上保持一致,将Fortran程序改造成DLL动态连接库的方法和在Visual C++中动态装载DLL动态连接库的算法。通过Fortran和Visual C++的混合编程,研制了飞机质量分布特性计算软件的WIINDOWS版本。利用大量已有成熟的FORTRAN程序,避免了重复编程和资源浪费,节省了大量编程时间,在工程与科学研究中有很大的应用价值。This paper discusses mixed-language programming of Visual C ++ and Fortran, specially focus on methods of dynamic link libraries(DLL). We clarify the method how to build a dynamic link libraries(DLL) using Compaq Visual Fortran 6.5 and how to call the DLL in Visual C ++ 6.0. How calling conventions, naming conventions and arguments passing consistently reconciled between Fortran and Visual C ++ is discussed . The methods how Fortran programs are rebuilt to turn into a DLL and the arithmetic how a DLL is dynamically loaded in Visual C ++ are argued. By means of Fortran/ Visual C ++ mixed-language programs We have developed a Windows' edition of a software computing mass distribution of aircraft. A lot of maturely heritage Fortran codes are utilized, the resource waste and repeated programming are avoided and the programming periods are shortened greatly. These have greatly application value in the engineering and scientific research.

关 键 词:动态连接库 混合编程 动态装载 飞机 质量分布 

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

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

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