Topic "getting error while using scpcore.lib"

Author Message
sarguna
[View user's profile]

Joined: 2006-10-09
Posts: 3
Location: India
i m following the previous msg posted for using the scpcore.lib

http://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
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
You have to implement these functions, see UserInterface.cpp for example.
_________________
Martin Prikryl
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License