Changeset 2510

Show
Ignore:
Timestamp:
05/15/99 12:14:21 (15 years ago)
Author:
ucacoxh
Message:

- Added message box for win32 users who launch with no command line options.

Should stop some complaints.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • rat/trunk/session.c

    r2501 r2510  
    3838usage(void) 
    3939{ 
    40         printf("Usage: rat [options] -t <ttl> <addr>/<port>\n"); 
     40#ifdef WIN32 
     41        char win_usage[] = "\ 
     42RAT is a multicast (or unicast) audio tool. It is best to start it\n\ 
     43using a multicast directory tool, like sdr or multikit. If desired RAT\n\ 
     44can be launched from the command line using:\n\n\ 
     45rat <address>/<port>\n\n\ 
     46where <address> is machine name, or a multicast IP address, and <port> is\n\ 
     47the connection identifier (a number between 1024-65536).\n\n\ 
     48For more details see:\n\n\ 
     49http://www-mice.cs.ucl.ac.uk/multimedia/software/rat/FAQ.html\ 
     50"; 
     51        MessageBox(NULL, win_usage, "RAT Usage", MB_ICONINFORMATION | MB_OK); 
     52#else 
     53        printf("Usage: rat [options] -t <ttl> <addr>/<port>\n"); 
     54#endif 
    4155        exit(1); 
    4256}