- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am using visual basic (2008) scripts for automation of other software. It would be great to access this functionality from my existing Fortran codes.
Is this possible by building Visual Basic as a Class Library DLL and calling them from Fortran?
I have more or less understood the calls from Fortran to a C/C++ DLL and have several working codes now, but C++ DLLs at least have a .LIB file for the interfaces. Whereas VB2008 just generates a DLL..
I looked at the VB DLL using the Fortran module wizard and it seems a .NET object (rather than COM type library). I was unable to extract the interfaces as I did in a previous application. However my understanding of these aspects is low..
any comments/suggestions would be appreciated.
dmitri
-------------
For the moment I am trying to get a simple example just with something like
Public Class Class1
Public Function MyVBFunction(ByVal x As Integer) As Integer
MsgBox(x)
End Function
End Class
or, at least initially, even with no arguments (I can navigate to the data from within VB - though eventually-ideally would like to pass 1D arrays and maybe strings as well)
Is this possible by building Visual Basic as a Class Library DLL and calling them from Fortran?
I have more or less understood the calls from Fortran to a C/C++ DLL and have several working codes now, but C++ DLLs at least have a .LIB file for the interfaces. Whereas VB2008 just generates a DLL..
I looked at the VB DLL using the Fortran module wizard and it seems a .NET object (rather than COM type library). I was unable to extract the interfaces as I did in a previous application. However my understanding of these aspects is low..
any comments/suggestions would be appreciated.
dmitri
-------------
For the moment I am trying to get a simple example just with something like
Public Class Class1
Public Function MyVBFunction(ByVal x As Integer) As Integer
MsgBox(x)
End Function
End Class
or, at least initially, even with no arguments (I can navigate to the data from within VB - though eventually-ideally would like to pass 1D arrays and maybe strings as well)
Link Copied
0 Replies

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page