Distance logo

Distance Developers Guide

How to build Fortran components

Jump down to:

Find out tool versions

Compaq Visual Fortran:


Build MCDS analysis engine


Copy MCDS.exe for use in Visual Basic and release


Build MCDS analysis engine NMake file


Build MCDS analysis engine from command prompt using NMake file

chdir %BASE%\Analysis Engines\CDS\Engine\Engine\

"C:\Program Files\Microsoft Visual Studio\DF98\BIN\DFVARS.BAT"

nmake /f MCDS.MAK cfg="MCDS - Win32 Debug"

Capture MCDS input files from within Distance for Windows

If reusing files elsewhere check to ensure that any paths within the files are updated.


Run MCDS from the command prompt using captured input files

For full details of MCDS usage, input file formats, output file formats and return codes, see Appendix - MCDS Engine Reference, Distance 6.2 Release 1 User’s Guide, p307-344.

MCDS 0 INPUT_COMMAND_FILE

mcds.exe 0 dstA705.tmp
2

Capture MCDS output files from within Distance for Windows


Run Ec.exe from the command prompt

Ec.exe is a stand-alone executable that executes a command line after parsing and removing Windows NT-compatible redirection symbols. It is used to capture standard output and standard error. Ec.exe is distributed with Distance for Windows.

For more information, see:

To see command-line usage:

Ec
EC - Version: X1.11   Built: Mar 13 1997  17:12:09

Usage is: EC [-sw -sw] "Command line > out_file 2>&1"

Switches are:
   l      Toggle display of command execution
   c      Toggle use of command shell
   s      Toggle display of result codes of execution
   t      Toggle Windows 95 style processing
   n      Toggle use of new console windows
   y      Toggle display of consoles
   v      Display program version number
   ?      Display this help message

Ec MCDS.exe 0 dst3C5.tmp \options 2>dst3C4.tmp