Click here to Skip to main content
15,916,601 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow do you initialize a structure with a CPoint member? Pin
kleft11-Jun-03 5:38
kleft11-Jun-03 5:38 
AnswerRe: How do you initialize a structure with a CPoint member? Pin
valikac11-Jun-03 6:30
valikac11-Jun-03 6:30 
GeneralRe: How do you initialize a structure with a CPoint member? Pin
kleft11-Jun-03 7:40
kleft11-Jun-03 7:40 
GeneralRe: How do you initialize a structure with a CPoint member? Pin
David Crow11-Jun-03 8:07
David Crow11-Jun-03 8:07 
AnswerRe: How do you initialize a structure with a CPoint member? Pin
Anonymous12-Jun-03 7:09
Anonymous12-Jun-03 7:09 
Questionhow do I connect to other PCs with parallel port Pin
anhnt7911-Jun-03 5:29
anhnt7911-Jun-03 5:29 
AnswerRe: how do I connect to other PCs with parallel port Pin
valikac11-Jun-03 6:32
valikac11-Jun-03 6:32 
Generalftp problem Pin
t.ucello11-Jun-03 5:22
t.ucello11-Jun-03 5:22 
Hi,

I have implemented an FTP application, which will schedule itself to run daily by using SetTimer, once it’s started. Everyday it will FTP-get a plain text file from a remote server using MFC classes CInternetSession and CFtpConnection.

The plain text file’s name will be the same, but the content is updated daily. The problem I’m having is the first time I start the application, it gets the text file of that day, but then it will get the same file, even though the content of the remote file has already been updated. It seems like the file is cached somewhere. If I stop the application and re-start it, again it will be fine the first time.

The code is below:

CInternetSession session(_T("DBAdmin"));
CFtpConnection* ftp;

session.SetOption (INTERNET_OPTION_CONNECT_TIMEOUT, 30000);
session.SetOption (INTERNET_OPTION_CONTROL_SEND_TIMEOUT, 30000);
session.SetOption (INTERNET_OPTION_CONTROL_RECEIVE_TIMEOUT, 30000);
session.SetOption (INTERNET_OPTION_DATA_SEND_TIMEOUT, 30000);
session.SetOption (INTERNET_OPTION_DATA_RECEIVE_TIMEOUT, 30000);

try
{
ftp = session.GetFtpConnection (strIP, strLogin, strPwd, iPort);
if (ftp)
{
if (!ftp->GetFile (strSrc + strFileName, strDest + strFileName))
}
}

Is this a setting problem or a programming one?

Thanks in advance.

Tony
Confused | :confused:
GeneralRe: ftp problem Pin
valikac11-Jun-03 6:42
valikac11-Jun-03 6:42 
GeneralRe: ftp problem Pin
basementman12-Jun-03 6:50
basementman12-Jun-03 6:50 
GeneralInstalling VC6 SP5 Pin
yarp11-Jun-03 5:09
yarp11-Jun-03 5:09 
GeneralRe: Installing VC6 SP5 Pin
SNathani11-Jun-03 8:21
SNathani11-Jun-03 8:21 
GeneralRe: Installing VC6 SP5 Pin
yarp11-Jun-03 20:05
yarp11-Jun-03 20:05 
GeneralCompiler switches Pin
doctorpi11-Jun-03 5:03
doctorpi11-Jun-03 5:03 
GeneralRe: Compiler switches Pin
markkuk11-Jun-03 7:37
markkuk11-Jun-03 7:37 
GeneralRe: Compiler switches Pin
doctorpi11-Jun-03 7:57
doctorpi11-Jun-03 7:57 
GeneralExtended MAPI Pin
Valeria Bogdevich11-Jun-03 4:16
Valeria Bogdevich11-Jun-03 4:16 
GeneralRe: Extended MAPI Pin
David Crow11-Jun-03 4:24
David Crow11-Jun-03 4:24 
GeneralRe: Extended MAPI Pin
David Crow11-Jun-03 7:19
David Crow11-Jun-03 7:19 
GeneralRe: Extended MAPI Pin
David Crow12-Jun-03 2:33
David Crow12-Jun-03 2:33 
GeneralRe: Extended MAPI Pin
David Crow12-Jun-03 10:49
David Crow12-Jun-03 10:49 
GeneralRe: Extended MAPI Pin
Valeria Bogdevich12-Jun-03 11:25
Valeria Bogdevich12-Jun-03 11:25 
GeneralRe: Extended MAPI Pin
David Crow13-Jun-03 2:25
David Crow13-Jun-03 2:25 
GeneralRe: Extended MAPI Pin
Valeria Bogdevich13-Jun-03 2:54
Valeria Bogdevich13-Jun-03 2:54 
GeneralCRichEditCtrl slowing down my application Pin
Manfred Staiger11-Jun-03 4:08
Manfred Staiger11-Jun-03 4:08 

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.