Click here to Skip to main content
16,007,779 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionhelp needed Pin
bollapalli18-Oct-06 0:08
bollapalli18-Oct-06 0:08 
AnswerRe: help needed Pin
Jörgen Sigvardsson18-Oct-06 11:46
Jörgen Sigvardsson18-Oct-06 11:46 
QuestionIs there any other way.... Pin
Anamika200517-Oct-06 23:41
Anamika200517-Oct-06 23:41 
AnswerRe: Is there any other way.... Pin
Christian Graus17-Oct-06 23:51
protectorChristian Graus17-Oct-06 23:51 
GeneralRe: Is there any other way.... Pin
Anamika200518-Oct-06 0:34
Anamika200518-Oct-06 0:34 
GeneralRe: Is there any other way.... Pin
Christian Graus18-Oct-06 1:27
protectorChristian Graus18-Oct-06 1:27 
AnswerRe: Is there any other way.... Pin
David Crow18-Oct-06 3:28
David Crow18-Oct-06 3:28 
GeneralRe: Is there any other way.... Pin
vijay_aroli18-Oct-06 4:13
vijay_aroli18-Oct-06 4:13 
HI Shikha!!! Are u passing the correct path of the file to be uploaded in the CFtpConnection::PutFile() function??? i am new to programming but i had developed a FTP client just a couple of months back.. so, i want u to see if you are passing the correct path in the PutFile() function. and like what Sir David Crow said, without having a look at ur code, we may not be able to give u the correct suggestions.. so, just see if u can post the sample of ur code...

i used the following lines of code to upload a file called as 'test.txt' residing on my 'C' drive.the file will be stored as 'ftptest.txt' on the FTP server.

<br />
//Create a session variable and get a pointer to the FTP connection..<br />
CInternetSession sess(_T("MyFtpModule"));<br />
CFtpConnection* pConnect = NULL;<br />
<br />
//use pConnect to Connect to the server<br />
pConnect = sess.GetFtpConnection(_T(/*pass the parameters here*/));<br />
<br />
//when the connection is established,use PutFile() to upload<br />
BOOL bUploaded = pConnect->PutFile("C:\\test.txt","ftptest.txt",FTP_TRANSFER_TYPE_ASCII,1);


I want others to correct if i am wrong..

Regards, vijay Aroli.

Questionchecking char array and a string ? Pin
Sakthiu17-Oct-06 23:29
Sakthiu17-Oct-06 23:29 
QuestionRe: checking char array and a string ? Pin
Programm3r17-Oct-06 23:32
Programm3r17-Oct-06 23:32 
JokeRe: checking char array and a string ? Pin
Sakthiu18-Oct-06 0:47
Sakthiu18-Oct-06 0:47 
GeneralRe: checking char array and a string ? Pin
Programm3r18-Oct-06 0:55
Programm3r18-Oct-06 0:55 
GeneralRe: checking char array and a string ? Pin
Sakthiu18-Oct-06 1:04
Sakthiu18-Oct-06 1:04 
GeneralRe: checking char array and a string ? Pin
Programm3r18-Oct-06 1:11
Programm3r18-Oct-06 1:11 
GeneralRe: checking char array and a string ? Pin
David Crow18-Oct-06 3:32
David Crow18-Oct-06 3:32 
GeneralRe: checking char array and a string ? Pin
Hamid_RT18-Oct-06 8:58
Hamid_RT18-Oct-06 8:58 
GeneralRe: checking char array and a string ? Pin
toxcct18-Oct-06 1:39
toxcct18-Oct-06 1:39 
GeneralRe: checking char array and a string ? Pin
David Crow18-Oct-06 3:31
David Crow18-Oct-06 3:31 
AnswerRe: checking char array and a string ? Pin
toxcct17-Oct-06 23:34
toxcct17-Oct-06 23:34 
AnswerRe: checking char array and a string ? Pin
Christian Graus17-Oct-06 23:36
protectorChristian Graus17-Oct-06 23:36 
QuestionRe: checking char array and a string ? Pin
David Crow18-Oct-06 3:34
David Crow18-Oct-06 3:34 
AnswerRe: checking char array and a string ? Pin
Hamid_RT18-Oct-06 8:58
Hamid_RT18-Oct-06 8:58 
QuestionPDH.H File Problem Pin
Programm3r17-Oct-06 22:47
Programm3r17-Oct-06 22:47 
AnswerRe: PDH.H File Problem Pin
toxcct17-Oct-06 23:25
toxcct17-Oct-06 23:25 
GeneralRe: PDH.H File Problem Pin
Programm3r17-Oct-06 23:29
Programm3r17-Oct-06 23:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.