Just a question on WININET
C / C++ / MFC
1
Posts
1
Posters
0
Views
1
Watching
-
Here is a function: void Foo(CFtpConnection *pFtpConnection) { CFtpFileFind finder(pFtpConnection); CString currentDir; BOOL bFlag=FALSE; bFlag=finder.FindFile(NULL); pFtpConnection->GetCurrentDirectory(currentDir); while(bFlag) { bFlag=finder.FindNextFile(); if(!finder.IsDots()) { pFtpConnection->SetCurrentDirectory(finder.GetFileName()); pFtpConnection->SetCurrentDirectory(currentDir); } } finder.Close(); } When I call this function with a valid CFtpConnection object's address, will it generate some errors? If so, could you explain something to me?:confused: Law is meaningless without chaos. Chaos without Law is equal to destruction. Chaos and Law create our rich and colorful world.