473,434 Members | 1,405 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,434 software developers and data experts.

Ftp error c++ (Using external .h file)

I have downloaded the ftp library files from http://www.example-code.com/vcpp/ftp_passiveUpload.asp

And set it in my code:

#include "stdafx.h"
#include "iostream"
#include <CkFtp2.h>

void ChilkatSample(void)

int main(){
ChilkatSample();
return 0;
}

void ChilkatSample(void)
{
CkFtp2 ftp;

bool success;

// Any string unlocks the component for the 1st 30-days.
success = ftp.UnlockComponent("Anything for 30-day trial");
if (success != true) {
printf("%s\n",ftp.lastErrorText());
return;
}

ftp.put_Hostname("www.example-code.com");
ftp.put_Username("***");
ftp.put_Password("***");

// Use Passive mode.
ftp.put_Passive(true);

// Connect and login to the FTP server.
success = ftp.Connect();
if (success != true) {
printf("%s\n",ftp.lastErrorText());
return;
}

// Change to the remote directory where the file will be uploaded.
success = ftp.ChangeRemoteDir("junk");
if (success != true) {
printf("%s\n",ftp.lastErrorText());
return;
}

// Upload a file.
const char * localFilename; //The local file exists already
localFilename = "hamlet.xml";
const char * remoteFilename;
remoteFilename = "hamlet.xml";

success = ftp.PutFile(localFilename,remoteFilename);
if (success != true) {
printf("%s\n",ftp.lastErrorText());
return;
}

ftp.Disconnect();

printf("File Uploaded!\n");
}


But when i compile the program it give the error:

error LNK2019: unresolved external symbol "public: void __thiscall CkFtp2::put_Username(char const *)" (?put_Username@CkFtp2@@QAEXPBD@Z) referenced in function "void __cdecl ChilkatSample(void)" (?ChilkatSample@@YAXXZ)
Jun 3 '14 #1
1 2830
weaknessforcats
9,208 Expert Mod 8TB
Is there a function put_Username(char const *) in the class CkFtp2 ?
Jun 3 '14 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Aravind | last post by:
we have two files: 1. rc4.c (defines one function "create_pin()") 2. MyImpl.c(calling the function "create_pin()"),This implements JNI method. 1.When I am trying to create .dll file with one...
2
by: Hugh Macdonald | last post by:
I'm writing a tool at the moment that reads in an external file (which can use any Python syntax) At the moment, I'm reading the file in using: scriptLines = open(baseRippleScript).read()...
2
by: Mary | last post by:
Hello, I am having a problem with the cl compiler. I have written a C class (RegConnect.c) which uses Win32 API functions such as RegOpenKey, RegCloseKey etc. Initially when I was trying to...
0
by: Sanjay Kumr | last post by:
Hi, I am trying to use a .tlb file in an asp page. I am getting an error. Error Type: Server object, ASP 0177 (0x800401F3) Invalid ProgID. For additional information specific to this message...
4
by: yOtA | last post by:
I get this Linker Errors while compiling my program: Error: Unresolved external 'vminit()' referenced from C:\TESTE\TESTE.OBJ Error: Unresolved external 'vmalloc(void *, int, unsigned int,...
0
by: =?Utf-8?B?VG9ydXM=?= | last post by:
Currently in my project I am using MSXML2 to generate a webpage. I would like to take my .xsl file and put it within my project rather than having it be an external file. What I do now to load...
1
by: davidemazza82 | last post by:
Hi all, I got an from IE 7.0.5730.11 when moving the <script src="..." type="text/javascript" /tag from the <headpart to the <bodysection of a HTML file. Is not possibile to include...
0
debasisdas
by: debasisdas | last post by:
This thread contains some useful tips for using External tables. USING EXTERNAL TABLE ======================= 1.THE TABLE POINTS TO EXTERNAL FILE. IF DATA IS ALTERED IN THE EXTERNAL FILE,DATA...
2
aquagirl20
by: aquagirl20 | last post by:
I'm new in using tables. I have a series of getter methods and I wants to display them in a table. I've been trying to use the external file that my program saves but I'm having a hard time how to...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.