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

Thread: Ftp in VC++

  1. #1
    Join Date
    Mar 2011
    Posts
    25

    Ftp in VC++

    Apoligies if I have put this in the wrong forum but...

    I am attempting to upload 2 files onto a server which I presume I will have to create, although I am not entirely sure on this part, and then download the files at the click of a button within my program.

    I was wondering if any of you lovely people have done anything similar or would be able to point me in the right direction as to where I could find tutorials etc on how to do it.

    Thanks for any help given

  2. #2
    Join Date
    Oct 2006
    Location
    Sweden
    Posts
    3,654

    Re: Ftp in VC++

    This MFC class will be handy http://msdn.microsoft.com/en-us/libr...fk(VS.80).aspx
    Regarding the server there are lot of free one's on the net. See for instance sourceforge http://sourceforge.net/search/?q=ftp+server
    Debugging is twice as hard as writing the code in the first place.
    Therefore, if you write the code as cleverly as possible, you are, by
    definition, not smart enough to debug it.
    - Brian W. Kernighan

    To enhance your chance's of getting an answer be sure to read
    http://www.codeguru.com/forum/announ...nouncementid=6
    and http://www.codeguru.com/forum/showthread.php?t=366302 before posting

    Refresh your memory on formatting tags here
    http://www.codeguru.com/forum/misc.php?do=bbcode

    Get your free MS compiler here
    https://visualstudio.microsoft.com/vs

  3. #3
    Join Date
    Mar 2011
    Posts
    25

    Re: Ftp in VC++

    Thanks SMA, I found the two links helpful but when asked for host I have no idea what to put in it to be honest

  4. #4
    Join Date
    Oct 2006
    Location
    Sweden
    Posts
    3,654

    Re: Ftp in VC++

    You either put the hosts DNS name or its ip address. You will probably run the ftp server on the same machine as you're coding on so put 127.0.0.1 as host until you go 'live' with your application.
    Debugging is twice as hard as writing the code in the first place.
    Therefore, if you write the code as cleverly as possible, you are, by
    definition, not smart enough to debug it.
    - Brian W. Kernighan

    To enhance your chance's of getting an answer be sure to read
    http://www.codeguru.com/forum/announ...nouncementid=6
    and http://www.codeguru.com/forum/showthread.php?t=366302 before posting

    Refresh your memory on formatting tags here
    http://www.codeguru.com/forum/misc.php?do=bbcode

    Get your free MS compiler here
    https://visualstudio.microsoft.com/vs

  5. #5
    Join Date
    Mar 2011
    Posts
    25

    Re: Ftp in VC++

    Thanks for the advice SMA, I have now just started a local server using 127.0.0.1, as for what I am needing it for can just be on the same machine

Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured