Dealing with name-mangling
You can deal with the problem of name mangling at the Visual Basic or the Fortran end. In the previous chapter, we explained how to use the Alias clause in Visual Basic's Declare statement, to make a name-mangled Fortran procedure residing in a DLL accessible through a friendlier name. On the other hand, most Fortran compilers have a way to specify or change the default name of a procedure exported to a DLL. Using the Fortran compiler functionality to do this is usually the preferred method, as it allows the exported functions to be called from any other language without having to worry about special provisions.