04
There are simple workarounds for this problem, although they are not entirely satisfactory. For example, the Visual Basic documentation indicates that you must declare string arguments that will be modified by external procedures as fixed-length strings long enough to avoid the external procedure writing past the end of the string. If you are using f90VB with your external Fortran procedures, these workarounds are not necessary. f90VB's subroutine StrConvFromVB takes a Visual Basic BString as it is passed to an external procedure, and converts it into a standard BString. Conversely, f90VB's StrConvToVB can be called just before you return a standard BString to a Visual Basic program, to modify the BString into the appropriate special return format that Visual Basic expects.