Quantcast
Channel: Tecplot Knowledgebase » Addons
Viewing all articles
Browse latest Browse all 6

FORTRAN on Windows – Writing to console

$
0
0

Problem: If my Fortran add-on code writes to the console (using for example WRITE(* *) it crashes Tecplot.

Solution: Add the following to your InitTecAddOn routine: INTEGER*4 I INTERFACE FUNCTION AllocConsole() USE DFWINTY integer(BOOL) :: AllocConsole ! BOOL!DEC$ ATTRIBUTES DEFAULT STDCALL ALIAS:_AllocConsole@0::AllocConsole END FUNCTION END INTERFACE I = AllocConsole()


Viewing all articles
Browse latest Browse all 6

Trending Articles