Code:
PacHeader[0] = '\0';
strcat ( PacHeader, "ARC" );
can bet written as
Code:
strcpy ( PacHeader, "ARC" );
Code:
output.write (PacHeader, 3);
Does not match:
as the latter is 4 bytes, and you write 3 bytes.
My guess is that:
"cannot convert char to char"
should be
"cannot convert char* to char"
since you are trying to do that in this line:
Code:
FileAmount = argv[2] - '0';
argv[2] is a char * (that is, a text string), not a single char.
You probably want to use strtol() to convert argv[2] to an integer value (it does not at all have to be a hex value - you need a short integer).
--
Mats