COMM-DRV/Lib: FileTransferDialog() Enables an automatic dialog to be displayed on some of the file transfer functions

Description-

This function enables or disables the display of a dialog box with file transfer progress for the cdrvxfer_files() function.

Syntax-

stat = FileTransferDialog(port,mode);

On Entry-

int port;

Port previously opened with OpenComPort().

int mode;

0 Disable the file transfer dialog.
1 Enable the file transfer dialog.

On Exit-

int stat;

-1 If port was not initialized.

See Also-

cdrvxfer_files()
cdrvxfer_sfiles()
TransferFiles()

Example-

#include "comm.h"
main()
 {
 int stat;
 int mode=1;
if ((stat = FileTransferDialog(port,mode)) == -1)
 {
 printf("Port not initialized\n");
/* Take remedial action */
 }
}