Has anyone experience of using VPE with FTN95?
I can envisage doing it by writing a custom interface of C/C++ routines to match each of the VPE library routines but there must be a simpler way!
The general form taken by VPE routines is:
// Type of VPE Handles typedef void * VpeHandle;
// Open new document VpeHandle hdoc = VpeOpenDoc( NULL, 'Test', 0 );
// Write text line to document VpeWriteLine( hdoc, ix, iy, 'Some message at specified page coords' );
So the question is: can the VpeHandle hdoc pointer be captured by an initial C_EXTERNAL call from within a FTN95 subroutine in the form
C_EXTERNAL VPEOPEN 'VpeOpenDoc' (REF, OUTSTRING, VAL)
and then text line written with
C_EXTERNAL VPEWRITE 'VpeWriteLine' (REF, VAL, VAL, OUTSTRING)
and, if so, would the REF be a Fortran long integer variable?