Microsoft KB Archive/27476

= Guidelines for Interfacing FORTRAN with Compiled Basic =

Article ID: 27476

Article Last Modified on 11/21/2006



This article was previously published under Q27476



SUMMARY
Interfacing FORTRAN with compiled Basic is fairly straightforward; however, there are several rules to observe.



MORE INFORMATION
These rules are as follows:


 * 1) FORTRAN should not be linked with the small-memory model.
 * 2) When compiling the FORTRAN subroutine, no special switches need to be used. However, you need to LINK the Basic and FORTRAN routines with the /NOE option.
 * 3) FORTRAN has the ability to call Basic subprograms; however, the FORTRAN routine that calls the Basic subprograms must have originally been called by a Basic main program.
 * 4) All variables that are passed from a FORTRAN routine to a Basic subprogram must be [NEAR] variables.
 * 5) FORTRAN routines can be used in a quick library if so desired.
 * 6) Microsoft FORTRAN Version 4.00 is needed to correctly interface with QuickBasic Version 4.00. Microsoft FORTRAN Version 4.10 is needed to correctly interface with QuickBasic Versions 4.00b and 4.50 or Basic Compiler Versions 6.00 and 6.00b programs.

Additional query words: QuickBas BasicCom

Keywords: KB27476

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.