Calling Another Program from a Vermont Views Application

A function is provided so that you can call another program from within your Vermont Views application. To do this, call the Vermont Views spawn function, vv_spawn():

int vv_spawn(command)

UCHAR *command;        /* String to pass to command interpreter        */

When the called program terminates, the screen is restored for the Vermont Views application and the physical cursor is restored to its original location.

vv_spawn() does not clear the screen prior to invoking the program. If you want to clear the screen before calling the other program, call vs_clr() prior to calling vv_spawn(). To save the screen image, clear the screen, call another program, and then restore the screen image afterwards, use code such as this:

wi_sav(FULL_WNP);

vs_clr();

vv_spawn("command.com");

wi_unsav(FULL_WNP);


Home Contents Previous Next