Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.

Data exchanging between F90 - VB6

paolo_becchi
Beginner
825 Views
Dear all,
I'm working with a combined VB6 - F90 code using F90 dll connected to the VB6 interface and I have some problems related to the data exchange between Visual Basic and Fortran, especially using user data type.
Please consider, for example, a structured user data type as the following:
Type datacurve
vector1 (1 to n) as double
matrix (1 to m, 1 to p) as single
....
End type
I have no problem if I have to exchange this kind of data between VB6 and F90 and back especially if the data type is already dimensioned.
But if I would like to read the data from a file using a F90 dll, I should have to allocate the datatype in F90 dll code pass it back to VB6, but I have problems related to the dimensions. So, at the moment, in order to avoid this problem, I call a pre-reading F90 subroutine that read the dimensional parameter (n, m, p and so on), comes back to the VB6 where the data type is dimensioned and then this data is exchanged again to the F90 dll code where the file is read and the user data type variables is stored.
Has somebody a better solution for this kind of problems.
Thank you very much for your contributions
0 Kudos
0 Replies
Reply