Click here to Skip to main content
15,900,906 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Code-a-phone Pin
David Crow29-Dec-04 4:45
David Crow29-Dec-04 4:45 
Questionwhat is the error in the following code? (not giving the required output). Pin
babur khan28-Dec-04 3:38
babur khan28-Dec-04 3:38 
AnswerRe: what is the error in the following code? (not giving the required output). Pin
El Corazon28-Dec-04 4:15
El Corazon28-Dec-04 4:15 
GeneralRe: what is the error in the following code? (not giving the required output). Pin
Neville Franks28-Dec-04 9:09
Neville Franks28-Dec-04 9:09 
GeneralFinding type size Pin
Franz Klein28-Dec-04 2:21
Franz Klein28-Dec-04 2:21 
GeneralRe: Finding type size Pin
Chris Losinger28-Dec-04 3:08
professionalChris Losinger28-Dec-04 3:08 
GeneralRe: Finding type size Pin
Gary R. Wheeler28-Dec-04 4:35
Gary R. Wheeler28-Dec-04 4:35 
GeneralNewest file on ftp Pin
Dariusz M. Mikulski28-Dec-04 1:39
Dariusz M. Mikulski28-Dec-04 1:39 
I have very strange problem. See this code:

I used this mfc class to connect to ftp

CFtpConnection *m_pFtpConnection;
CInternetSession m_Session(NULL, 1, INTERNET_OPEN_TYPE_DIRECT, NULL, NULL, INTERNET_FLAG_DONT_CACHE);
m_Session.SetOption(INTERNET_OPTION_REQUEST_FLAGS, INTERNET_REQFLAG_CACHE_WRITE_DISABLED);

end the connection:

try {
m_pFtpConnection = m_Session.GetFtpConnection(strHostname, strLogin, strPassword, nPort, bPassive);

m_pFtpConnection->SetCurrentDirectory(strFrom);

here i want get name of the newest file on ftp:

CFtpFileFind finder(m_pFtpConnection);

BOOL bWorking = finder.FindFile((LPCTSTR)strFrom, INTERNET_FLAG_DONT_CACHE | INTERNET_FLAG_RAW_DATA);

FILETIME ft1;

TimeStamp ts1(1971, 1, 1, 0, 0, 0);
TimeStamp ts2;

CString strGetFile;

while(bWorking) {
bWorking = finder.FindNextFile();
finder.GetLastWriteTime(&ft1);
TimeStamp ts2(ft1);
if(!finder.IsDots()) {
if(!finder.IsDirectory()) {
if(ts1
GeneralProgress Bar in StatusBar Pin
Neelesh K J Jain28-Dec-04 1:04
Neelesh K J Jain28-Dec-04 1:04 
GeneralHide Internet Explorer Menu Bars and Toolbars Pin
Member 24341328-Dec-04 0:28
Member 24341328-Dec-04 0:28 
GeneralRe: Hide Internet Explorer Menu Bars and Toolbars Pin
gsaigopal28-Dec-04 0:31
sussgsaigopal28-Dec-04 0:31 
GeneralRe: Hide Internet Explorer Menu Bars and Toolbars Pin
Member 24341328-Dec-04 16:04
Member 24341328-Dec-04 16:04 
GeneralRe: Hide Internet Explorer Menu Bars and Toolbars Pin
Alok Bhardwaj29-Dec-04 19:16
Alok Bhardwaj29-Dec-04 19:16 
GeneralRe: Hide Internet Explorer Menu Bars and Toolbars Pin
Alok Bhardwaj29-Dec-04 19:35
Alok Bhardwaj29-Dec-04 19:35 
QuestionHow to prevent from inhertance Pin
Kiran Kumar Singani28-Dec-04 0:26
Kiran Kumar Singani28-Dec-04 0:26 
AnswerRe: How to prevent from inhertance Pin
Prakash Nadar28-Dec-04 0:34
Prakash Nadar28-Dec-04 0:34 
GeneralRe: How to prevent from inhertance Pin
virtualkirankumar28-Dec-04 0:40
virtualkirankumar28-Dec-04 0:40 
GeneralRe: How to prevent from inhertance Pin
Prakash Nadar28-Dec-04 0:46
Prakash Nadar28-Dec-04 0:46 
AnswerRe: How to prevent from inhertance Pin
jan larsen28-Dec-04 1:39
jan larsen28-Dec-04 1:39 
AnswerRe: How to prevent from inhertance Pin
CP Visitor28-Dec-04 2:34
CP Visitor28-Dec-04 2:34 
GeneralSmall Prolem with OptionTree Pin
Fenderman27-Dec-04 23:33
Fenderman27-Dec-04 23:33 
GeneralRe: Small Prolem with OptionTree Pin
Prakash Nadar27-Dec-04 23:48
Prakash Nadar27-Dec-04 23:48 
GeneralRe: Small Prolem with OptionTree Pin
Fenderman28-Dec-04 0:17
Fenderman28-Dec-04 0:17 
GeneralRe: Block Copying Data Pin
Prakash Nadar27-Dec-04 23:46
Prakash Nadar27-Dec-04 23:46 
GeneralHm... Pin
Dennis Gourjii27-Dec-04 23:47
Dennis Gourjii27-Dec-04 23:47 

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.