Guidelines for Interfacing FORTRAN with Compiled Basic (27476)






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.

Modification Type: Minor Last Reviewed: 1/8/2003
Keywords: KB27476