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.
29285 Discussions

calling a VB script (eg, DLL) from a Fortran EXE

forall
Beginner
448 Views
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)
0 Kudos
0 Replies
Reply