Version: 3.2.5.0
Construct high quality server and custom server proxy applications using FTP, DNS, and TCP protocols.
Q: Can I use the TCP Server control to build a custom mail server?
A: Yes. In fact, you can start with a mail server sample project and extend it to satisfy your security or functionality requirements.
Back to Top
Q: Can I use this product to transfer files securely?
A: Yes, HTTPS is perfect for transferring a file securely.
Back to Top
Q: Does the TCP Server control have any limitations?
A: One major one. Each TCP connection is created and managed on the thread that created the Server control, so this is not a good choice if you need each connection to be managed on separate threads. For you C++ developers building multi-threaded applications, we recommend the Winsock Tool.
Back to Top
Q: How do I deploy Excel spreadsheets that use PowerTCP ActiveX controls?
A: Unfortunately, there is no consistent model for 3rd party component support across Office products and versions. The recommended usage in Excel is to use the product as a reference rather than inserting it as a control. Also, if the spreadsheet ever had a PowerTCP control inserted at any previous time, that data was cached by Excel and a new spreadsheet will be required. When deploying to users, please refer to "Distribution under Internet Information Server" in the documentation for instructions as the technique is the same.
Back to Top
Q: I exported a certificate from my UNIX operating system to use with your product in SSL mode, but it doesn't seem to work.
A: Our implementation requires that a certificate be properly imported into a valid Microsoft Certificate Store. If you are importing a certificate that was created from a non-MS source (such as OpenSSL), please be sure that you export the certificate properly before attempting to import it into an MS Cert store. Check the docs for whatever SSL system you are using for this info. Also, make sure that when you export your certificate, regardless of your SSL library, that it includes the private key. A certificate that is exported without a private key can not be used as a valid certificate when imported into the Microsoft Certificate Store.
Back to Top
Q: I have a web page that embeds your ActiveX control that works on my development machine. On another machine, a red 'X' appears or the controls shows the Trial Message.
A: The problem is that a runtime license needs to be provided for the control. Resolution: Get LPK_TOOL.EXE from Microsoft. You can find it in their Cabinet Development kit. It is also on one of the CDs that comes with Visual Studio. Use the LPK_TOOL to create an .lpk file for YOUR control. We can't stress YOUR control enough. In other words, let's say that you have a control called MyControl that contains several Dart controls. When choosing the control in the LPK_TOOL listbox, choose MyControl, NOT the Dart Controls. Again, we can't stress this part enough as it is ALWAYS the part that is missed. Add the following to your document BEFORE any other objects are declared. Make sure LPKNAME.LPK is the name of YOUR lpk: <OBJECT CLASSID=clsid:5220cb21-c88d-11cf-b347-00aa00a28331> <PARAM NAME='LPKPath' VALUE='LPKNAME.LPK'>
Back to Top
Q: In Powerbuilder, the hourglass cursor does not persist when the Dart control is busy. How can I keep the hourglass?
A: Unlike other environments, the interface is automatically disabled when the cursor changes to an hourglass in Powerbuilder.

Including the code below will allow the hourglass to persist, but it will not automatically disable the interface. To produce the usual hourglass behavior, the interface must be explicitely disabled and enabled by the user.

//In the external global function declarations
FUNCTION ulong SetCapture(ulong a) LIBRARY "user32.dll"
FUNCTION boolean ReleaseCapture()
LIBRARY "user32.dll"

//In the script
ulong ll_handle, ll_rc
ll_handle = Handle(this)
ll_rc = SetCapture(ll_handle)
SetPointer(hourglass!)

//after done
ReleaseCapture()

Back to Top
Q: Is the free trial a 'full version'?
A: Yes. Your trial download is identical to the purchased product. The only difference is the trial download will only work for 30 days (in the case of ActiveX products) or will work for 7 days between each rebuild (for .NET products).
Back to Top
Q: Is this product interoperable with the .NET framework?
A:

Although the product may work with the .NET framework, it is not recommended no supported by our technical staff. PowerTCP for ActiveX products were not made to be used with the .NET framework and some features or versions of the framework may be incompatible. We do offer a line of PowerTCP for .NET products that are updated for continued compatibility within .NET.


Back to Top
Q: What would I use a DNS Server control for?
A: You can resolve a hostname to any IP address based upon loading metrics or security access privileges. When combined with the DNS control (from the Winsock Tool), you can even screen the hostname of each request before forwarding the request up to the next DNS server.
Back to Top
Q: What would I use an FTP Server control for?
A: You can intercept practically any request, and modify the response based upon your logic. For example, you could selectively restrict logins based upon username and time of day. You have complete control over the operation of the server.
Back to Top
Q: What’s a proxy, and how would I build one using this tool?
A: A proxy server accepts a connection and establishes another active connection to a final destination (that the application is a proxy for). To build a proxy using this product, use the TCP Server control to accept connections and use an associated TCP control to establish a connection to the destination server. As data is received, simply pass it back and forth between the two connections. Some proxies are much more sophisticated, and will monitor the connection and take action based on the protocol traffic it observes. This is sophisticated stuff, but is actually pretty easy to develop using PowerTCP.
Back to Top
Q: Why am I getting a Type Mismatch error in VBScript?
A: When using our controls in VBScript, you must specify optional parameters to prevent Type Mismatch errors.
For example, to zip a file with the FileStore, you need to create a SpanSettings instance:

Dim span
Set span = CreateObject("Dart.SpanSettings.1")
...
Zip1.FileStore.Zip("c:\Test\test.zip", span)

Back to Top
Q: Why would I use the TCP Server control instead of the Daemon and TCP controls available in the Winsock Tool?
A: The Server control, in fact, uses an internal Daemon control and dynamically creates TCP controls as each connection is accepted. The TCP controls are stored in a collection, and each time an event is raised a reference to the relevant TCP control is included as an event parameter. So if you want to spend the time doing this yourself, then there is no benefit. But if you want to “leave the coding to us”, then just use this product instead.
Back to Top
Q: Your SMTP server sample does not relay mail. How can I implement this?
A: The PowerTCP Mail Tool, available separately, can be used to easily forward mail to an intermediate server or final destination.
Back to Top
Q: Can I use the ActiveX controls in a scripting language such as VBScript?
A:

Yes, in most environments the ActiveX controls can be used in a scripting engine such as VBScript.

However, while the controls will work on 64 bit machines in compiled environments such as VB6 and VC++, they are limited to 32 bit Operating Systems in scripting environments.


Back to Top
Q: Why do I see an 'Error accessing the registry' message in VB6?
A: This error will occur on Windows Vista and Windows 7 machines when User Account Control (UAC) is on and VB6 tries to write to an inaccessible part of the registry.

You will see this error message when an ActiveX control is used for the first time. This may be when a project using the control is opened, or when the control is selected to add to the Toolbox.

After the initial failure, VB6 will select an alternate registry location to write to, and subsequent uses of the control will not produce the error.


Back to Top