Ftp Client Files
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: Ftp Client Files

Hybrid View

  1. #1
    Join Date
    Jun 2013
    Posts
    21

    Ftp Client Files

    Here is the code that gets the list of files with WININET functions

    Code:
    void CSimpleftpclientDlg::OnButton3() 
    {
    
    
    
    
    
    
    	   HANDLE hFind;
    WIN32_FIND_DATA findData;
    strcat(data,"");
    hFind = FtpFindFirstFile(hIConnect, NULL, &findData,INTERNET_FLAG_NEED_FILE,NULL);
    
    
    if (hFind != INVALID_HANDLE_VALUE) {
    	while (InternetFindNextFile(hFind, &findData)){
    
    
    	strcat(data,findData.cFileName);
        strcat(data,"\r\n");
    
    
      } }
     
    m_dir.AddString(data);
    
    
    
    
    
    
    
    
     }
    the code is a button..it works, but all the filenames are on the same line in the list box..how can I put them on their own line

  2. #2
    Join Date
    Jun 2013
    Posts
    21

    Re: Ftp Client Files

    Nevermind..got it to work with

    Code:
    	while (InternetFindNextFile(hFind, &findData)){
    
    
           
    	
    		m_dir.AddString(findData.cFileName);

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center