Software Archive
Read-only legacy content
Announcements
FPGA community forums and blogs have moved to the Altera Community. Existing Intel Community members can sign in with their current credentials.
17060 Discussions

vb.net fortran dll

johngeorge35
Beginner
915 Views
I am trying to get a project I had running in vb6 running in vb.net
I am having trouble with the arrays because of the changes in vb.net
If I define my array as starting at a(0,0) instead of a(1,1), and I pass the array as a(0,0) into the fortran dll, will it interpret the array as a(1,1) in the
fortran dll?
Thanks for any comments on this
J george
0 Kudos
4 Replies
johngeorge35
Beginner
915 Views
The first question should be,
Can I even call the dll created in visual fortran
in vb.net?
JHG
0 Kudos
Steven_L_Intel1
Employee
915 Views
If you can call a DLL written in C, you can call a DLL written in Fortran.

Steve
0 Kudos
johngeorge35
Beginner
915 Views
The reason for my question is that I am reading that vb is doing the
memory different in vb.net than in vb6. For example, you cannot declare
the lower array limit, and the memory may not be alocated sequentially as
is done in fortran and vb6. I hope you are right, what is the big push to get
Visual fortran in .net, and when should it be ready?
I assume you are saying it is ok to run a VF dll in vb.net, are there any examples?
0 Kudos
Steven_L_Intel1
Employee
915 Views
The nice thing about DLLs is that they are the most compatible thing you can call. However, you have to get the argument passing right. We haven't looked at all at VB.NET to see what, if anything, it does differently from VB6.

I am sure that VB can call all manner of DLLs - you just need to figure out how to express it properly.

Steve
0 Kudos
Reply