OK, I've done more research and I am trying to test using the microsoft ftp server. here's the code:
Code:
CInternetSession isession;
CFtpConnection* pConnect;
pConnect = isession.GetFtpConnection(_T("ftp.microsoft.com"));
CString dir;
pConnect->GetCurrentDirectory(dir);
FILE *out = fopen("H:\\GUI\\testInet.txt", "w");
fprintf(out, "current dir: >%s<\n", dir);
CFtpFileFind finder(pConnect);
BOOL bWorking = finder.FindFile(_T("*"));
while (bWorking)
{
bWorking = finder.FindNextFile();
fprintf(out,"%s\n", (LPCTSTR) finder.GetFileURL());
}
From here I think I can output the file names to the user and then use the one that user selects as the new directory to go into it. Is there anything wrong with the code? any pitfalls I can get myself into with this?