| Product: Distinct VIT | Topic: SMTP, POP, MIME, IMAP | Last updated: 3/17/2008 |
| |
| Q.: I need my SMTP client to connect to a port other than the well known port. |
A.: Distinct will first check the services file to see if there is an entry for smtp, otherwise it will connect to the well-known port 25. If you wish to connect to a different port you need to change the smtp entry in the services file. If the entry is not in your service file you need to add it. However, be careful not to add it if it is already there as the first entry will be read
smtp 25/tcp mail
|
| |
Do you find this information useful ? Yes No Not Sure |
|
| Product: Distinct VIT | Topic: SMTP, POP, MIME, IMAP | Last updated: 3/31/2008 |
| |
| Q.: MISSING D32-FW.DLL |
A.: The D32-FW.DLL is a Distinct owned library used in many commercial applications, including Yahoo Messenger. If you obtained this library with a third party product, and you need technical support, you need to go to that vendor.
|
| |
Do you find this information useful ? Yes No Not Sure |
|
| Product: Distinct VIT | Topic: Telnet | Last updated: 3/17/2008 |
| |
| Q.: Do you have a Telnet sample for Access 97? |
| A.: Yes. You can find this at: ftp://ftp.distinct.com/download/samples/telnet.mdb |
| |
Do you find this information useful ? Yes No Not Sure |
|
| Product: Distinct VIT | Topic: Telnet | Last updated: 3/17/2008 |
| |
| Q.: I am using Distinct's Telnet control in a VB application. I seem to receive the first OnReceive() event but do not get the subsequent ones. |
A.: The problem may be related to the fact that while you are reading the data of the first OnReceive event more data came in which you did not get notification of.
Try to put the Telnet.Receive in a While loop and read until the ReceiveCount has gone to 0. This way you will get all the data intact without the need of a delay and all subsequent OnReceive events will fire. |
| |
Do you find this information useful ? Yes No Not Sure |
|
| Product: Distinct VIT | Topic: VT220 | Last updated: 3/23/2008 |
| |
| Q.: Can I do screen scraping operations using the VT220 Control? |
| A.: Yes, starting with version 4.01 three methods are included for doing this. GetSelectedText allows you to scrape the user highlighted selection, GetScreenText allows you to scrape the section of the screen specified by the given co-ordinates and GetText allows scrapes the section of the scrollback buffer specified by the given co-ordinates. |
| |
Do you find this information useful ? Yes No Not Sure |
|
| Product: Distinct VIT | Topic: VT220 | Last updated: 3/23/2008 |
| |
| Q.: Can I get the VT220 control to automatically send data to the server without using the Windows Socket control? |
A.: Yes. First, obtain the window handle of the VT220 control. This can be done using the GetWindow function such as
VT220Handle = GetWindow(Form1.hwnd, GW_CHILD)
where Form1 is the form containing the VT220 control. This call assumes that the control is the only child window. Then send the WM_CHAR message to the control window for every character in the string you want to send (including the CR or CR/LF, but excluding the zero terminator). You should see each character being sent to the server and then echoed back to the client display. The server will execute the command after the line terminator has been sent. |
| |
Do you find this information useful ? Yes No Not Sure |
|
| Product: Distinct VIT | Topic: VT220 | Last updated: 3/23/2008 |
| |
| Q.: How can I get the VT220 control to automatically send data to the server without using the windows socket control? |
A.: First, obtain the window handle of the VT220 control. This can be done using the GetWindow function such as VT220Handle = GetWindow(Form1.hwnd, GW_CHILD) where Form1
is the form containing the VT220 control. This call assumes that the control is the only child window. Then send the WM_CHAR message to the control window for every character in the string you want to send (including the CR or CR/LF, but excluding the zero terminator). You should see each character being sent to the server and then echoed back to the client display. The server will execute the command after the line terminator has been sent. |
| |
Do you find this information useful ? Yes No Not Sure |
|
| Product: Distinct VIT | Topic: VT220 | Last updated: 3/23/2008 |
| |
| Q.: How do I do data manipulation using the VT220 control? |
A.: The recommended way is to use the VT220 control in conjunction with the Windows Sockets control. For a complete sample of how to do this see:
For C++: ftp://ftp.distinct.com/download/samples/vtsock.zip
For Visual Basic: ftp://ftp.distinct.com/download/samples/vbvtsock.zip
|
| |
Do you find this information useful ? Yes No Not Sure |
|
| Product: Distinct VIT | Topic: VT220 | Last updated: 3/23/2008 |
| |
| Q.: How do you remap the function keys in the VT220 control? |
A.: Here is how you remap the keys using our VT220 control. You must call the ConfigureKeyboard method. This method causes the keyboard remapping dialog box to come up. You can remap your keys then save them to your custom file eg. project1.key and make sure you save this with the SaveTermSetting method.
The format of escape sequences must be entered as follows:
^[escape sequence
eg
^[OP
|
| |
Do you find this information useful ? Yes No Not Sure |
|
| Product: Distinct VIT | Topic: VT220 | Last updated: 3/23/2008 |
| |
| Q.: I am using the Distinct VIT VT220 Component to connect to a host via a third-party library (e.g. a Serial Port library) and it seems escape sequences are not processed correctly. How can I correct this?
|
A.: The problem is that the data from the serial port should be passed to the
VT220 component without any changes, i.e. in binary format. When you read
from the port using ReadExisting, .Net tries to parse the incoming data and
thus the escape sequences are lost.
Use the Read method instead to read into a Byte[] (not Char[] !) array, or
ReadByte to read binary data from the port. Do not use any text-reading
methods on the serial port since that would corrupt the data.
You can then convert the read data into a String using Chr() function (this
way the escape sequences won't be lost) and supply the resulting string to
the component. Here's how the DataReceived event may be handled in this scenario:
Private Sub SerialPort1_DataReceived(ByVal sender As System.Object, ByVal e
As System.IO.Ports.SerialDataReceivedEventArgs) Handles
SerialPort1.DataReceived
Dim a() As Byte = {}
Dim dataSize As Integer
Dim s As String
Dim i As Integer
dataSize = SerialPort1.BytesToRead
Array.Resize(a, dataSize)
SerialPort1.Read(a, 0, dataSize)
s = ""
For i = 0 To a.Length - 1
s = s + Chr(a(i))
Next
AxVT2201.WriteData = s
End Sub
|
| |
Do you find this information useful ? Yes No Not Sure |
|