GINO Graphics Suite - GINO v9.0  

gGetFileAssociation

Syntax

[C/C++:]
void gGetFileAssociation(char ext[ ], int action, char app[ ], int len);
[F90:]
subroutine gGetFileAssociation(ext, action, application)

character*(*),  intent(in) :: ext
integer,           intent(in) :: action
character*(*),  intent(out) :: application

Arguments

ext
File extension

action
Association action

= GOPEN, Open file (default)
= GPRINT, Print file

application
Full pathname and switches of registered application

len
Length of application string (C/C++ only)

Description

The routine gGetFileAssociation() returns the full pathname (and appropriate switches) to carry out the defined action on a file with the supplied extension as registered on the computer on which the application is running. This routine currently only operates on a Windows implementation of GINO.

If no file association for the requested extension is registered, the application string will be returned as a blank or NULL string.

See Also

gGetFileAssociation Usage