CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jul 2005
    Location
    india
    Posts
    17

    CFtpConnection::PutFile problem under DHCP

    Hi,

    i am using CFtpConnection class for doing the following operations...

    1. Creating directory i FTP server
    2. Uploading a file name "Info.xml" (using CFtpConnection::PutFile )

    The above two steps working fine under STATIC IP,

    if i am under DHCP then 1. Creating directory i FTP server working fine...

    2. Uploading a file name "Info.xml" it is Not working, the problem is it is creating a file in FTP server but the contents in that file is ZERO BYTES

    Any idea what could be the reason and how to solve this problem

    http://www.desktoppack.com
    c0mgu1

  2. #2
    Join Date
    Mar 2005
    Location
    Romania,Cluj-Napoca
    Posts
    1,073

    Re: CFtpConnection::PutFile problem under DHCP

    Did you tried to check if the upload succeed? And check the last error whit " GetLastError() " function .

    Regards,
    Gili
    Please use code tags [code] [/code]

    We would change the world, but God won't give us the sourcecode..
    Undocumented futures are fun and useful....
    ___
    ______
    Gili

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