Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. FTP using WININET.DLL

FTP using WININET.DLL

Scheduled Pinned Locked Moved Visual Basic
questionhelp
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    leezardd
    wrote on last edited by
    #1

    Help! I am using something I don't understand and need some direction. I am trying to use "WININET.DLL" to ftp a file. I know the function FtpPutFile returns false but I don't know why. How can I find out why? Below is a code snippet of what I am doing. All help is greatly appreciated! Public Function bolFtpUpload(ByVal............... bolFtpAction = FtpPutFile(intNetConn, _ strLocalFile, _ strRemoteDirectory, _ intTransferTypeFlag, _ intContext) If bolFtpAction = False Then "Transfer failed " Else "Transfer Succeeded " End If End Function Private Declare Function FtpPutFile Lib "WININET.DLL" _ Alias "FtpPutFileA" (ByVal intFtpSession As Integer, _ ByVal strLocalFile As String, _ ByVal strRemoteFile As String, _ ByVal intFlags As Integer, _ ByVal intContext As Integer) As Boolean

    T 1 Reply Last reply
    0
    • L leezardd

      Help! I am using something I don't understand and need some direction. I am trying to use "WININET.DLL" to ftp a file. I know the function FtpPutFile returns false but I don't know why. How can I find out why? Below is a code snippet of what I am doing. All help is greatly appreciated! Public Function bolFtpUpload(ByVal............... bolFtpAction = FtpPutFile(intNetConn, _ strLocalFile, _ strRemoteDirectory, _ intTransferTypeFlag, _ intContext) If bolFtpAction = False Then "Transfer failed " Else "Transfer Succeeded " End If End Function Private Declare Function FtpPutFile Lib "WININET.DLL" _ Alias "FtpPutFileA" (ByVal intFtpSession As Integer, _ ByVal strLocalFile As String, _ ByVal strRemoteFile As String, _ ByVal intFlags As Integer, _ ByVal intContext As Integer) As Boolean

      T Offline
      T Offline
      Tad McClellan
      wrote on last edited by
      #2

      I know this doesn't answer your question but you should use the System.Net namespace for FTP Operations. http://msdn2.microsoft.com/en-us/library/system.net.ftpwebrequest.aspx[^]

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups