To decide where to put the decoded file and what to name it then use the SetDecodeDestination method.
This variation of the method will decode the data for of a MacBinary file into a single file and the resource fork into the data fork of another file. (This can be used to preserve the resource fork if decoded on Windows systems).
Possible Error codes in the LastError property:
-1003 - Desitination file is nil.
-1004 - Destination file is allready set.
-1006 - Could not create file.
Other possible errors: MacOS or Windows file system errors.
Note:
This function should be called right after constructing the class in decode mode. Use the OriginalFileName property to get the name of the original file.