Post a reply :: Support Forum

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Tip: Styles can be applied quickly to selected text.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Re: Error when I bulid the source with bc6

How did you compile WinSCP?
abaz

The code is below:

AnsiString Copyright = StringReplace(LoadStr(WINSCP_COPYRIGHT), "?, "(c)",
abaz

Error when I bulid the source with bc6

Hi
I run the source code 438, and give a error:

ConsoleRunner.cpp
void __fastcall Usage(TConsole * Console)
{
AnsiString Usage = LoadStr(USAGE6, 10240);
AnsiString ExeBaseName = ChangeFileExt(ExtractFileName(Application->ExeName), "");
Usage = StringReplace(Usage, "%APP%", ExeBaseName,
TReplaceFlags() << rfReplaceAll << rfIgnoreCase);
AnsiString Copyright = StringReplace(LoadStr(WINSCP_COPYRIGHT), "?", "(c)",

I modify it to
AnsiString Copyright = StringReplace(LoadStr(WINSCP_COPYRIGHT), "?", "(c)",

It is good. But give the exec:
Fixed file info not available.

I fid the code as below but don't know how to repare it.
PVSFixedFileInfo __fastcall GetFixedFileInfo(void * FileInfo)
{
UINT Len;
PVSFixedFileInfo Result;
if (!VerQueryValue(FileInfo, "\\", (void**)&Result, &Len))
throw Exception("Fixed file info not available");
return Result;
};

Can you help me?
Thank you!