Home Forums ActiveX components Xceed FTP for ActiveX Setting the ServerPort higher then 32767

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #42672 |

    i’m using xceed FTP Library v1.1, Visual basic 6 . It seems when i set the serverport higer then 32767 i get an overflow. prolly cuz you can only give an interger there. however for my program i would need to connect to ftp’s wich port is set at 61577 how would i do this ? or is it not possible ?

    Imported from legacy forums. Posted by Thomas (had 2767 views)

    User (Old forums)
    Member
    Post count: 23064

    Hello Thomas.

    We had to expose this field as a signed integer to support languages that do not support unsigned integers, like VB. If you wish to assign a port value greater than 32767, do the following:

    Dim port As Long
    port = 60000

    If port > 32767 Then
    xFtp.ServerPort = (port – 65536)
    Else
    xFtp.ServerPort = port
    End If

    Hope this helps.

    Imported from legacy forums. Posted by Martin (had 3512 views)

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.