I have RAR-component 2.0 and Delphi 2010. This component uses AnsiString for File Path. How can I make it unicode? I changed AnsiString to String in RAR.pas but it did not help.
Thanks!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
In RAR.pas:
fFileNamefield and theFilenameproperty to WideString.TRAR.OpenFileso theFileNameargument is a WideString.In
TRAR.OpenArchive(Extract:boolean)change this line:ArcName := PAnsiChar(fArchiveInformation.FileName);to this:
ArcNameW := PWideChar(fArchiveInformation.FileName);In RAR_DLL.pas:
Change
GetFileModifyDateso this line:is this:
and remove the
Struct: TOFSTRUCT;line from the var block.