#define _WINDOWS
#define _WINDLL
#include <windows.h>
#include "pwdefdlx.h"
#include "xmodem.h"

STRINGTABLE
BEGIN
   IDS_LASTERROR       "Timed out"
   IDS_LASTERROR+1     "Bad CRC"
   IDS_LASTERROR+2     "Bad Checksum"
   IDS_LASTERROR+3     "Aborting"
   IDS_LASTERROR+4     "Remote Aborted"
   IDS_LASTERROR+5     "Nack Received"
   IDS_LASTERROR+6     "Bad Block No."
   IDS_LASTERROR+7     "Uart Error"
   IDS_LASTERROR+8     "File Reposition"
   IDS_LASTERROR+9     "Packet Type Error"
   IDS_LASTERROR+10    "File Renamed - "
   IDS_LASTERROR+11    "Resuming Xfer"
   IDS_LASTERROR+12    "Transfer Aborted by Remote "
   IDS_LASTERROR+13    "Transfer Aborted Timed Out"
   IDS_LASTERROR+14    "Transfer Complete - "
   IDS_LASTERROR+15    "Transfer Aborted -  Loss of Carrier"
   IDS_LASTERROR+16    "Transfer Aborted by User"
   IDS_LASTERROR+17    "Transfer File Already Exists - "
   IDS_LASTERROR+18    "Transfer Aborted Bad Block Number Received"
   IDS_LASTERROR+19    "Transfer Aborted File Write Error  "
   IDS_LASTERROR+20    "File Creation Error"
   IDS_LASTERROR+21    "Info Header Error"
   IDS_LASTERROR+22    "Transfer Aborted Error Count Exceeded"
   IDS_LASTERROR+23    "Sending Protocol is not TRUE YMODEM.  Try using XMODEM-crc"
   IDS_LASTERROR+24    "Transfer Aborted File Read Error  "
   IDS_LASTERROR+25    "Remote Skipped File"
   IDS_LASTERROR+26    "Transfer Aborted File Creation Error  "
   IDS_LASTERROR+27    ""
   IDS_LASTERROR+28    "Transfer Aborted Packet Type Unknown "
   IDS_LASTERROR+29    "Transfer Aborted File Not Found "
   IDS_LASTERROR+30    "Receiving Online Gif Graphic"
   IDS_LASTERROR+31    "Kermit Command Timeout"
   IDS_LASTERROR+32    "Could not open file! "
   IDS_LASTERROR+33    "File write error!"
   IDS_LASTERROR+34    "File skipped!"
   IDS_LASTERROR+35    "Out of Disk Space - "
   IDS_LASTERROR+36    "Error in GIF file "
   IDS_LASTERROR+37    "Skipped file - "
   IDS_LASTERROR+38    "Resume failed - "
   IDS_LASTERROR+39    "Resuming "
   IDS_LASTERROR+40    "Waiting for CRC"
   IDS_LASTERROR+41    "Calculating CRC"
   IDS_LASTERROR+42    "Not enough disk space - "
   IDS_LASTERROR+43    "Waiting..."
   IDS_LASTERROR+44    "Can't display resumed GIF files"
   IDS_LASTERROR+45    "Starting BPLUS protocol, press escape to cancel"
END

// The Setup dialog MUST be 14600.  Also, all controls within it
// must be 146xx!

14600 DIALOG 13, 7, 265, 175
STYLE WS_POPUP | WS_VISIBLE
FONT 8, "MS Sans Serif"
BEGIN
   CONTROL "128 &Bytes", 14601, "BUTTON", BS_AUTORADIOBUTTON | WS_CHILD | WS_VISIBLE | WS_GROUP | WS_TABSTOP, 92, 86, 53, 12
   CONTROL "1024 Byt&es", 14602, "BUTTON", BS_AUTORADIOBUTTON | WS_CHILD | WS_VISIBLE, 92, 100, 56, 12
   CONTROL " Record Length ", 14603, "BUTTON", BS_GROUPBOX | WS_CHILD | WS_VISIBLE, 87, 73, 90, 43
   CONTROL " Check Type ", 14604, "BUTTON", BS_GROUPBOX | WS_CHILD | WS_VISIBLE, 87, 15, 90, 43
   CONTROL "Chec&ksum", 14605, "BUTTON", BS_AUTORADIOBUTTON | WS_CHILD | WS_VISIBLE | WS_GROUP | WS_TABSTOP, 92, 28, 56, 12
   CONTROL "C&RC", 14606, "BUTTON", BS_AUTORADIOBUTTON | WS_CHILD | WS_VISIBLE, 92, 42, 56, 12
   LTEXT "These settings are just to demonstrate the capability to interface with Set-up.  These options do not change the actual XModem transfer.", 14607, 72, 128, 120, 37, WS_CHILD | WS_VISIBLE | WS_GROUP
END

