Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29276 Discussions

Sharing Fortran common blocks with VB.net

islayrod
Beginner
771 Views

I have a large mixed language project (legacy code)that needs to be converted from Compact Visual Fortran and Microsoft Visual C++ to .NET. In the legecy code, several large fortran common block are shared between fortran code and the C++ code using global structures. I've been told that there may beproblems with tring to do this (sharing common blocks/data structure) in VB.NET or even C++.NET.

Have anyone ever done this? I would apprieciate any examples dealing with this and any information on how it is done.

Thanks,

Islay

0 Kudos
1 Reply
g_f_thomas
Beginner
771 Views

I doubt that this can be done although you might be able to try memory mapping but this is usually used for interprocess sharing. If you want to share intraprocess between Fortran and VB you have to pass the data as arguments to a sub or function.

Gerry

0 Kudos
Reply