Post a reply

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

Bug reports without an attached log file are usually useless.

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: getting error while using scpcore.lib

You have to implement these functions, see UserInterface.cpp for example.
sarguna

getting error while using scpcore.lib

i m following the previous msg posted for using the scpcore.lib

https://winscp.net/forum/viewtopic.php?t=983


i have a probs in this
i made a new project in which i added the libs i.e. "ScpForms.lib" "RScpComp.lib" "ScpCore.lib" "Putty.lib"

and copied the core folder and pasted in my project folder

In program i wrote the code as follows by including the

#include "core/terminal.h"

void __fastcall TForm1::Button1Click(TObject *Sender)
{
TTerminal *Terminal;
TStrings *FilesToCopy = new TStringList();
TCopyParamType *CopyParam = new TCopyParamType();
Terminal = new TTerminal();
Terminal->SessionData->FSProtocol = fsSCPonly;
Terminal->SessionData->PortNumber = 22;
Terminal->SessionData->HostName = "192.168.1.155";
Terminal->SessionData->UserName = "root";
Terminal->SessionData->Password = "bkaspl";

Configuration = new TConfiguration();
Configuration->Default();
Configuration->Load();
Terminal->Open();
if (Terminal->Status != sshClosed)
{
FilesToCopy->Add("c:\data.txt");
CopyParam->TransferMode = tmBinary;
Terminal->CopyToRemote(FilesToCopy,"/temp", CopyParam,2);
Terminal->Close();
}
delete(Terminal);
delete(Configuration);
}
is the same in the previous msg

i got three linker error i don't know how to solve this, Plz solve this errors

Build
[Linker Error] Unresolved external '__fastcall SshVersionString()' referenced from C:\PROGRAM FILES\BORLAND\CBUILDER6\PROJECTS\FILESCP\LIB\SCPCORE.LIB|Net
[Linker Error] Unresolved external '__fastcall Busy(bool)' referenced from C:\PROGRAM FILES\BORLAND\CBUILDER6\PROJECTS\FILESCP\LIB\SCPCORE.LIB|ScpFileSystem
[Linker Error] Unresolved external '__fastcall GetRegistryKey()' referenced from C:\PROGRAM FILES\BORLAND\CBUILDER6\PROJECTS\FILESCP\LIB\SCPCORE.LIB|Configuration