| Product: Distinct VIT | Topic: General | Last updated: 3/17/2008 |
| |
| Q.: Can the Distinct libraries be used to build a command line or console application? |
| A.: Yes, all of the DLL libraries that have callback procedures for exchanging data and do not expect any Window handle (eg, SMTP, POP, MIME, FTP) can be used in this way. For sample code on how to use our libraries this way please download: ftp://ftp.distinct.com/pub/www/ftp.zip |
| |
Do you find this information useful ? Yes No Not Sure |
|
| Product: Distinct VIT | Topic: General | Last updated: 3/24/2008 |
| |
| Q.: Distinct Visual Internet Toolkit 5.1 - Release notes |
A.: Version 5.1 of the Distinct Visual Internet Toolkit includes some new features and a number of bug fixes.
VT-220
-------
Removed an assignment statement in order get the current state of CapsLock.
Modified two SetBkMode statements to solve color refresh problem.
FTP Client
----------
Added support to handle file paths that are greater than 128 characters.
Modified all port declarations from short to long to allow all valid ports to be accepted.
Fixed a problem with automatic restart in stream mode with the formatting of marker.
IMAP
____
Now allows spaces in the user name.
Memory in the Fetch method is now allocated dynamically to allow for long lists of cc or bcc recipients.
Now makes only one callback if the BODYSTRUCTURE EXT and BODYSTRUCTURE are both fetched.
The Recent flag is now not getting set through the Store command.
Removed the inclusion of macros.h in miblist.cpp in the DLL sample.
Now loads winsock dll only once to avoid the Microsoft winsock memory leak.
POP
----
Now loads winsock.dll only once to avoid the Microsoft winsock memory leak.
Direct command was fixed to set the correct buffer size required if it is small.
Direct command was fixed to work correctly for single line reply commands.
Removed hyphen from the name when looking for port in the services file
MIME
-----
Fixed a minor bug in mime_extract_end. The error was not set correctly.
A delimiter is now being set between 2 addresses in to/cc/bcc fields;
A 0 byte body is now being returned as a file;
Content-type/subtype was not being defaulted to Text/Plain;
We now fold the header if the length of the header is more than 1000 characters.
Modified to create temporary file in the specified directory.
Now gets the correct date when encoding.
Files are now being opened in binary mode instead of text mode to ensure correct message parsing.
SMTP
----
Direct command is now setting the correct buffer size required if it is small.
Stopped CRLF.CRLF being added in all the mails.
Now, CRLF.CRLF is added at the end of message only if the message does not contain crlf in the end.
The maximum size of the command line was changed from 1000 to 512.
Now loads winsock.dll only once to avoid the Microsoft winsock memory leak.
Telnet
------
Now loads winsock.dll only once to avoid the Microsoft winsock memory leak.
Remote Commands
----------------
Now loads winsock.dll only once to avoid the Microsoft winsock memory leak.
Added some yield for RCP to relinquish control to other threads.
Added code to use the next port if binding to the port fails.
TFTP
----
Modified block number from short int to WORD. Earlier block numbers could
not go beyond 32767. Also added the code to recycle the block numbers
after 65535.
Windows Sockets
---------------
Modified port type from short to long to allow all valid ports to be accepted.
Added code to load winsock only once in the lifetime of the ocx.
TCP Server
----------
Modified all the port declarations from short to long to allow all valid ports to be accepted.
Now loads winsock.dll only once to avoid the Microsoft winsock memory leak.
Added the code for the creation of an invisible window because
dynamic creation in vb was giving window handle as NULL.
FTP-SRV
-------
A comma was missing between element 30 and 31 of reply array. Due to this the server was failing in PASV mode for CoffeeCup client.
Added a registry entry for slow machines for the linger time of closing the
data socket.
HKLM\Software\Distinct\Ocx\D_ftps DataSocketTimeout DWORD
Modified the code to accept the second parameter in the TYPE command if set to N even though this is the default.
Added support for command 'STRU F'.
|
| |
Do you find this information useful ? Yes No Not Sure |
|
| Product: Distinct VIT | Topic: General | Last updated: 3/17/2008 |
| |
| Q.: How can I create an instance of an Active X control dynamically? |
A.: The following article is an excerpt from MSDN and can be found under the subject-ActiveX Control Containers: Using Controls in a Non-Dialog Container
In some applications, such as an SDI or MDI application, you will want to embed a control in a window of the application. The Create member function of the wrapper class, inserted by Gallery, can create an instance of the control dynamically, without the need for a dialog box.
The Create member function has the following parameters:
lpszWindowName
A pointer to the text to be displayed in the control's Text or Caption property (if any).
dwStyle
Windows styles. For a complete list, seeCWnd::CreateControl.
rect
Specifies the control's size and position.
pParentWnd
Specifies the control's parent window, usually a CDialog. It must not be NULL.
nID
Specifies the control ID and can be used by the container to refer to the control.
One example of using this function to dynamically create an ActiveX control
would be in a form view of an SDI application. You could then create an instance of the control in the WM_CREATE handler of the application.For this example, CMyView is the main view class, CCirc2 is the wrapper class, and CIRC2.H is the header (.H) file of the wrapper class.
Implementing this feature is a four-step process.
To dynamically create an ActiveX control in a non-dialog window
Insert CIRC2.H in CMYVIEW.H, just before the CMyView class definition:
#include "circ2.h"
Add a member variable (of type CCirc2) to the protected section of the CMyView class definition located in CMYVIEW.H:
class CMyView : public CView
{
...
protected:
CCirc2 m_myCtl;
...
};
Add a WM_CREATE message handler to class CMyView.
In the handler function, CMyView::OnCreate, make a call to the control's Create function using the this pointer as the parent window:
int CMyView::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
if (MyView::OnCreate(lpCreateStruct) == -1)
return -1;
// ****** Add your code below this line ********** //
m_myCtl.Create(NULL, WS_VISIBLE,
CRect(50,50,100,100), this, 0);
m_myCtl.SetCaption(_T("Control created"));
// ****** Add your code above this line ********** //
return 0;
}
Rebuild the project. A Circ2 control will be created dynamically whenever the application's view is created.
|
| |
Do you find this information useful ? Yes No Not Sure |
|
| Product: Distinct VIT | Topic: General | Last updated: 3/17/2008 |
| |
| Q.: How do I deploy the Distinct controls within my application? |
| A.: Please click here to get detailed technical information on this. |
| |
Do you find this information useful ? Yes No Not Sure |
|
| Product: Distinct VIT | Topic: General | Last updated: 3/17/2008 |
| |
| Q.: I am having problems running one of the Distinct samples from my programming environment. What could be the problem? |
| A.: Try running the compiled sample from Distinct from outside your programming environment. You will likely see a more meaningful error message to help you diagnose the problem. If you are running off an NT system make sure that the Program Files\Common Files\DistinctShared is in the path environment variable. It will show up as progra~1\common~1\distin~1. |
| |
Do you find this information useful ? Yes No Not Sure |
|
| Product: Distinct VIT | Topic: General | Last updated: 3/17/2008 |
| |
| Q.: I have a Distinct icon on my system tray - what is it? |
A.: If you are seeing a Distinct icon on your system tray - you are running a component from Distinct. This is likely to have been installed by a third party application if you have not directly licensed anything from us. Please right click the icon and provide us with the serial number. This will let us know if you are using a legitimate license or require the purchase of a license to run whatever libraries from Distinct are in use by the application.
|
| |
Do you find this information useful ? Yes No Not Sure |
|
| Product: Distinct VIT | Topic: General | Last updated: 3/17/2008 |
| |
| Q.: Is the Visual Internet Toolkit Windows 2000 compatible? |
A.: The Visual Internet Toolkit is compatible with Windows 2000 starting with version 5.0
All current product downloads for the Visual Internet Toolkit or individual components are currently Windows 2000 compliant.
|
| |
Do you find this information useful ? Yes No Not Sure |
|
| Product: Distinct VIT | Topic: General | Last updated: 3/17/2008 |
| |
| Q.: Where can I find a summary of the sample source code for my environment? |
| A.: Right here: http://www.distinct.com/products/vit32/docs/vit40_06.asp |
| |
Do you find this information useful ? Yes No Not Sure |
|
| Product: Distinct VIT | Topic: FTP Client and Server | Last updated: 3/20/2008 |
| |
| Q.: Can I adjust the connection timeout value and the connection and data buffer sizes? |
A.: Yes all of these are done through a registry entry so that the end user of your application may adjust these too if necessary.
The parameters used to control the behavior of the Distinct FTP-32 library are stored under the following registry path.
HKEY_LOCAL_MACHINE\SOFTWARE\Distinct\DLLS\FTP32
Timeout REG_DWORD number of seconds
Specifies the default timeout in seconds used for the FTP connection. This is the timeout value used for various network operations. The default value is 20 seconds. If you are using a serial connection you may want to increase this to 40.
BufferSize REG_DWORD number of bytes
Specifies the default buffer size in bytes used for data transfer. The default value is 32768 bytes and the permitted range is from 1024 to 32768 bytes.
CtrlBuffer REG_DWORD number of bytes
Specifies the default buffer size in bytes used for the control connection. The default value is 1024 bytes and the permitted range is 128 to 4096 bytes.
|
| |
Do you find this information useful ? Yes No Not Sure |
|
| Product: Distinct VIT | Topic: FTP Client and Server | Last updated: 3/20/2008 |
| |
| Q.: Can I initiate more than one concurrent file transfer? |
| A.: Yes, the Distinct FTP DLL is multithreaded and the ActiveX control is apartment threaded making it possible to do this. We supply sample code for Visual Basic 6 and C++ for this. |
| |
Do you find this information useful ? Yes No Not Sure |
|