The SocketTools ActiveX controls allow you to quickly integrate Internet functionality into your applications with an easy to use interface and minimal coding. The ActiveX edition includes detailed technical documentation and examples, along with free technical support for developers and evaluators.
You can request an experienced software architect provide your company with a free quote and consultation for a project that uses SocketTools. This can include developing a specific desktop or server application, or a custom modification to a SocketTools component.
» Request a custom development quote online
Supported Languages
The SocketTools ActiveX controls are lightweight ATL-based controls that can be used with Visual Basic 6.0 and Microsoft Office (VBA), as well as a variety of other languages such as dBase Plus, PowerBuilder, Visual C++ and Visual FoxPro. SocketTools can also be used with scripting languages that support COM components, such as VBScript.
The following code example shows how the FtpClient control could be used to upload a file to a server using the SFTP (SSH) protocol:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
FtpClient1.HostName = editHostName.Text FtpClient1.RemotePort = ftpPortSSH FtpClient1.UserName = editUserName.Text FtpClient1.Password = editPassword.Text ' Connect to the server and authenticate the user nError = FtpClient1.Connect() If nError > 0 Then MsgBox FtpClient1.LastErrorString, vbExclamation Exit Sub End If ' Upload the local file to the server nError = FtpClient1.PutFile(editLocalFile.Text, editRemoteFile.Text) If nError > 0 Then FtpClient1.Disconnect MsgBox FtpClient1.LastErrorString, vbExclamation Exit Sub End If ' Disconnect from the server after the transfer completes FtpClient1.Disconnect MsgBox ("The file was uploaded successfully") |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
' Create an instance of the ActiveX control Dim oFtpClient Set oFtpClient = WScript.CreateObject("SocketTools.FtpClient.8") ' Initialize the control to prepare it for use nError = oFtpClient.Initialize() If nError > 0 Then WScript.Echo "Unable to initialize SocketTools control" WScript.Quit(1) End If ' Connect to the server and authenticate the user nError = oFtpClient.Connect(sHostName, 22, sUserName, sPassword) If nError > 0 Then WScript.StdErr.WriteLine oFtpClient.LastErrorString WScript.Quit(1) End If ' Upload the local file to the server nError = oFtpClient.PutFile(sLocalFile, sRemoteFile) If nError = 0 Then WScript.StdOut.WriteLine "Uploaded " & sLocalFile Else WScript.StdErr.WriteLine oFtpClient.LastErrorString WScript.Quit(1) End If ' Disconnect from the server after the transfer completes oFtpClient.Disconnect WScript.Quit(0) |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
// Declare the variant parameters passed to the control _variant_t varHostName = m_strHostName; _variant_t varHostPort = m_nHostPort; _variant_t varUserName = m_strUserName; _variant_t varPassword = m_strPassword; _variant_t varError; // Connect to the server and authenticate the user varError = m_pFtpClient->Connect(varHostName, varHostPort, varUserName, varPassword); if ((int)varError > 0) { CString strError = m_pFtpClient->GetLastErrorString(); AfxMessageBox(strError, MB_ICONEXCLAMATION); return; } _variant_t varLocalFile = m_strLocalFile; _variant_t varRemoteFile = m_strRemoteFile; // Upload the local file to the server varError = m_pFtpClient->PutFile(varLocalFile, varRemoteFile); if ((int)varError > 0) { CString strError = m_pFtpClient->GetLastErrorString(); m_pFtpClient->Disconnect(); AfxMessageBox(strError, MB_ICONEXCLAMATION); return; } // Disconnect from the server after the transfer completes m_pFtpClient->Disconnect(); AfxMessageBox(_T("The file was uploaded successfully"), MB_ICONINFORMATION); |
The SocketTools ActiveX controls can be used with all versions of Visual Studio from Visual Studio 6.0 through to the current release, Visual Studio 2015. They can also be used as components with scripting languages that support COM objects. Please note that if you are using C# or VB.NET it is recommended that you use the SocketTools .NET Edition to avoid the additional overhead imposed by ActiveX controls.
Development Tools
Supported development tools are Visual Basic 6.0, Visual Basic for Applications (VBA) and all current versions of Visual Studio. Other third-party IDEs and languages, such as dBase Plus, Visual FoxPro and PowerBuilder are also supported. If your favorite language can use ActiveX controls or standard COM objects, it can also use the SocketTools ActiveX Edition controls.
The SocketTools ActiveX Edition includes both 32-bit and 64-bit controls for the broadest compatibility with all platforms. They can be used with legacy development environments such as Visual Basic 6.0, as well as the 64-bit version of Microsoft Office and other languages that target the x64 Windows platform.
Supported Platforms
SocketTools is supported on Windows 10 and Windows Server 2016. It is also supported on earlier desktop platforms, from Windows XP through Windows 8.1. On the Windows server platforms, SocketTools is supported on all versions of Windows Server 2003, Windows Server 2008 and Windows Server 2012. Both 32-bit and 64-bit versions of Windows are supported.
Windows XP must have Service Pack 3 (SP3) installed, and Windows Server 2003 must have Service Pack 2 (SP2) installed. It is recommended that you always have the current Windows service pack and critical updates installed on your development system. For IPv6 functionality, your system must have the IPv6 protocol installed and configured. Windows 2000 and earlier versions of Windows are not supported by the current version of SocketTools.