Click here to Skip to main content
15,899,475 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Changing static IP address programatically Pin
vivekphlp14-Apr-08 23:47
vivekphlp14-Apr-08 23:47 
GeneralRe: Changing static IP address programatically [modified] Pin
Nibu babu thomas15-Apr-08 10:58
Nibu babu thomas15-Apr-08 10:58 
GeneralRe: Changing static IP address programatically Pin
Hamid_RT11-Apr-08 0:03
Hamid_RT11-Apr-08 0:03 
GeneralRe: Changing static IP address programatically Pin
vivekphlp11-Apr-08 1:53
vivekphlp11-Apr-08 1:53 
GeneralVideo streaming Pin
CodeMak8-Apr-08 18:51
CodeMak8-Apr-08 18:51 
QuestionRe: Video streaming Pin
trioum8-Apr-08 23:37
trioum8-Apr-08 23:37 
GeneralRe: Video streaming Pin
CodeMak9-Apr-08 0:18
CodeMak9-Apr-08 0:18 
GeneralError in CInternetFile CFtpConnetion->OpenFile(.....) Pin
chetanjoshi98-Apr-08 18:50
chetanjoshi98-Apr-08 18:50 
I am trying to upload one directory to the perticular server

I have written the code as

CInternetFile *pInternetFile = 0;

pInternetFile = pFtpConnection->OpenFile(strDestFilePath, GENERIC_WRITE, FTP_TRANSFER_TYPE_BINARY,
FtpConnection->GetContext());

CFile LocalFile;
LocalFile.Open(strSrcFilePth, CFile::modeRead);

TCHAR szBuffer[256] = "";
int iRC = 0;

while((iRC = LocalFile.Read(static_cast<void *="">(szBuffer), sizeof(szBuffer))) != 0)
{
// Write to file
pInternetFile->Write(static_cast<const void="" *="">(szBuffer), iRC) ;

m_lDestFileSize = m_lDestFileSize + sizeof(szBuffer);

// Clear buffer
memset(szBuffer, 0, sizeof(szBuffer));
}


This code works for only one file and fails for second.

Please help me go this.

Thank you
GeneralRe: Error in CInternetFile CFtpConnetion-&gt;OpenFile(.....) Pin
rp_suman8-Apr-08 20:46
rp_suman8-Apr-08 20:46 
GeneralRe: Error in CInternetFile CFtpConnetion-&gt;OpenFile(.....) Pin
Hamid_RT11-Apr-08 0:03
Hamid_RT11-Apr-08 0:03 
QuestionHow to catch the event of Minimize window in MFC ? Pin
Yanshof8-Apr-08 17:37
Yanshof8-Apr-08 17:37 
AnswerRe: How to catch the event of Minimize window in MFC ? Pin
Mukesh Kumar8-Apr-08 18:32
Mukesh Kumar8-Apr-08 18:32 
GeneralRe: How to catch the event of Minimize window in MFC ? Pin
Yanshof8-Apr-08 18:43
Yanshof8-Apr-08 18:43 
GeneralRe: How to catch the event of Minimize window in MFC ? Pin
Mukesh Kumar8-Apr-08 19:35
Mukesh Kumar8-Apr-08 19:35 
GeneralRe: How to catch the event of Minimize window in MFC ? Pin
Yanshof8-Apr-08 20:10
Yanshof8-Apr-08 20:10 
AnswerRe: How to catch the event of Minimize window in MFC ? PinPopular
Aamir Butt9-Apr-08 0:19
Aamir Butt9-Apr-08 0:19 
AnswerRe: How to catch the event of Minimize window in MFC ? Pin
Hamid_RT11-Apr-08 0:03
Hamid_RT11-Apr-08 0:03 
GeneralUsing CWnd windows and controls Pin
42888-Apr-08 13:27
42888-Apr-08 13:27 
GeneralRe: Using CWnd windows and controls Pin
Mark Salsbery8-Apr-08 13:39
Mark Salsbery8-Apr-08 13:39 
GeneralRe: Using CWnd windows and controls Pin
42888-Apr-08 13:50
42888-Apr-08 13:50 
GeneralRe: Using CWnd windows and controls Pin
Mark Salsbery8-Apr-08 18:15
Mark Salsbery8-Apr-08 18:15 
GeneralRe: Using CWnd windows and controls Pin
42889-Apr-08 0:44
42889-Apr-08 0:44 
GeneralRe: Using CWnd windows and controls Pin
Mark Salsbery9-Apr-08 4:58
Mark Salsbery9-Apr-08 4:58 
GeneralRe: Using CWnd windows and controls Pin
42889-Apr-08 11:35
42889-Apr-08 11:35 
GeneralRe: Using CWnd windows and controls Pin
Nelek9-Apr-08 21:44
protectorNelek9-Apr-08 21:44 

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.