Distinct offers Network Monitor, the ONLY natural language Protocol Analyzer, ONC RPC for C++, .NET and Java, and IntelliTerm, the fastest Terminal Emulator for TN3270, TN5250 and VT420 on the market.

Knowledgebase

   Products   Downloads   Sales   Support   About us
  VIT



        
 
 

To use a Distinct ActiveX control in the Power Builder 5.0 environment, the application must include the definitions of action and errors for the control. These definitions are listed in the D_*.PWR file (where * represents the control name) shipped with the ActiveX control. For example, the D_FTP.PWR file contains the definition for the FTP control. This file must be included for each project that uses the control. This can be accomplished by pasting contents of the file into the Declare Global Variables dialog. (This dialog is opened by selecting Global Variable.. from the Declare menu.) Next, the ActiveX control must be added to the project. This is accomplished by choosing the OLE command from the Controls menu of PowerBuilder5.0, and selecting the Insert OLE tab. Choose the Distinct ActiveX Control of interest from the list of available controls.

Note for PowerBuilder 6.0 Windows 95 and 98 users

Note that the PBVM60.DLL from PowerBuilder must be present in the Windows system directory.

Note for PowerBuilder 5.0 Windows 95 users

Please note that the following PowerBuilder files: PBSHR050.DLL, PBRTF050.DLL, PBBGR050.DLL, PBDWE050.DLL and PBTYP050.DLL must be present in the Windows system directory.

How to Run the Sample Programs in PowerBuilder

Samples for several of the controls are provided for PowerBuilder versions 5 and 6. To run these samples in the Powerbuilder environment:

  1. Open the PowerBuilder programming environment. Choose Application from the Toolbar.
  2. Choose Open from the Toolbar.
  3. Browse for the …\samples\PB6\ftpclnt\ftpclnt.pbl file. Choose OK.
  4. Choose Run from the Toolbar. Click OK.

Where to find the Power Builder samples you need

Samples are stored in the PB5 and PB6 folders. Below we describe what each sample does. The folder column shows the subfolder name that contains one or more samples and the ActiveX control whose use is illustrated by the sample.

Folder Included Samples
Finger (Finger ActiveX) The finger sample program illustrates how to include Finger functionality into an application using the Finger ActiveX control.
Firewall (Firewall ActiveX) There are two samples in this folder each of which illustrate how to program your application to handle connections through SOCKS firewalls:

Daytime: This shows you how to make a connection to a remote host through a firewall and how to retrieve the hosts reply.

Send: This sample shows how to connect to a host through a firewall server to send a message.

FTPCLNT(FTP Client ActiveX) The ftpclnt sample program shows you how to make a connection to the FTP server, send FTP commands and close your FTP connection. It demonstrates much of the functionality of the FTP client ActiveX control, illustrating the functions as menu items to simplify the code breakdown and allow the programmer to quickly find some sample code for a particular method or property. This sample also illustrates how to connect to an FTP server through a SOCKS firewall proxy.
FTPSRV (FTP Server ActiveX) This ftpsrv sample program shows you how to integrate an FTP server that is capable of creating and modifying a client database, servicing several clients (up to 64) simultaneously and providing statistics on client activity. It demonstrates much of the functionality of the FTP server ActiveX control, illustrating the functions through a simple interface, user database structure and menu items to simplify the code breakdown and allow the programmer to quickly find some sample code for a particular method or property. This program illustrates how to write a custom FTP server application using the FTP Server ActiveX control.
MIME (Mime, SMTP and POP ActiveXs) This folder contains three subfolders each with a sample application:

Mime: The Mime program shows how to encode and decode files, and how to create and extract messages with attachments

SmtpMime: The SmtpMime sample illustrates the combined use of the SMTP and MIME ActiveX controls. It illustrates how to create an SMTP plain text message and attach MIME or UUencoded files. It then emails the messages using SMTP. You need to have a valid SMTP server to run this sample.

PopMime: The SmtpMime sample illustrates the use of the Mime ActiveX in conjunction with the POP ActiveX. It shows you how to connect to a POP3 server, download and extract MIME encoded or UUencoded mail messages.

NNTP (NNTP ActiveX) The nntpclnt sample program illustrates how to access a News server using the NNTP ActiveX control. The NNTP sample shows how to read, post, position and list news articles and how to navigate news groups. It also illustrates how to connect to the remote server through a firewall proxy.
POP (POP ActiveX) The popclnt sample program shows you how to make a connection to the POP 2 or POP 3 server, send POP commands, download messages, and close your POP connection. It demonstrates much of the functionality of the POP client ActiveX control, illustrating the functions as menu items to simplify the code breakdown and allow the programmer to quickly find some sample code for a particular method or property.
RCP (RCP ActiveX) The rcpclnt program illustrates how to include remote copy operations into an application using the RCP ActiveX control. This sample shows how to copy files between the local and remote machine, or from one remote machine to another. It also illustrates how to do recursive file copying. The sample also allows you to create a new file and save it to a remote file as well as view the contents of a remote file.
RLIB (RLIB ActiveX) The rlibclnt program illustrates how to include remote command execution into an application using the RLIB ActiveX control. The sample demonstrates the use of remote execution (Rexec), remote shell(rsh) and remote login(rlogin).

Note: In order to be able to connect using RLIB (RSHELL & REXEC) you must make the PC running RLIB client, a trusted host on the Unix machine that you are trying to connect.

Server (TCP Server ActiveX) This folder contains two sub folders one with a client application and one with a server application. They are intended to be run together to illustrate how a server application handles a client call:

Tcpclnt: This is a simple windows sockets application that makes a connection to a TCP server and sends data to the server

Tcpsrv: This is a very simple server application that can be put in listen mode to accept TCP connections and data sent from the tcpclnt application. For simplicity this sample has only two display windows and accepts two concurrent connections. You can modify the sample to accept more connections.

SMTP (SMTP ActiveX) The smtpclnt sample program shows you how to make a connection (including connecting through a SOCKS firewall server) to the SMTP server, send SMTP commands and mail, and close your SMTP connection. It demonstrates much of the functionality of the SMTP client ActiveX control, illustrating the functions as menu items to simplify the code breakdown and allow the programmer to quickly find some sample code for a particular method or property.
Telnet (Telnet ActiveX) The telnet sample program illustrates how to include Telnet type login capabilities into an application. It establishes a telnet connection (with the option of establishing this through a SOCKS firewall), allows you to send telnet commands and disconnects from the server.
TFTP (TFTP ActiveX) The tftpclnt sample program illustrates how to include TFTP file transfer functionality into an application using the TFTP ActiveX control. It demonstrates how to copy files between the local and remote machine, or from one remote machine to another.
VT220 (VT220 ActiveX) The VT220 sample program illustrates how to include complete VT220 terminal emulation into an application using the VT220 ActiveX control. This sample shows how to manage and customize configurations, how to capture data from the remote terminal, and how to map the keyboard.
WhoIs (WhoIs ActiveX) This program illustrates how to include WhoIs functionality into an application.
Windows Sockets (Windows Sockets ActiveX) Daytime: The daytime sample program illustrates how make a UDP or TCP connection to the remote host and retrieve the reply from the host.

Message: This folder contains two programs recv and send that are intended to work together to illustrate how to write the client and server side of a TCP connection using the Windows Sockets control.

Resolve: The resolve program illustrates how to resolve a host name to an internet address, or an internet address to a host name using the Windows Sockets ActiveX control.

 <<   Table Of Contents   >> 

*Get Adobe Acrobat Reader if needed.



Browse FAQ

Related Products
Mail Objects

Recommended Add-On
Network Monitor,
Protocol Analyzer


Raves
"The night before I went on summer holiday we had to make some 'last minute' configuration changes to approx. 300 routers, a tedious job to do manually with telnet. We went along with MS Excel containing a list of IP-adresses to the routers, and the VIT telnet-component. One hour later the VBA-application (small is beautiful) was working, and after another hour all of our routers were updated with the new configuration. I just say a big "Thanks" to you all for a good sleep that night."
Eirik Brendholen, Ergo Integration AS

"We conducted a test session to compare the performance of similar products, and Distinct's product was better!" [more]
Dr. Shyam Sunder, Carnegie Mellon University

"Together with Distinct, we were able to offer our users an ideal soution to enabling them to connect to Yahoo! Pager, and to do so both quickly and reliably." [more]
Brian Park,
Producer of Yahoo! Pager, Yahoo! Inc.


  7/24/2008   Legal notices | PRIVACY Policy | Networking News |         Page Last Modified: 3/13/2002