VB6 – Compile error: User-defined type not defined

If you see the following error on a Dim statement such as the following: Dim sa as New CkStringArray Make sure you add a reference to the appropriate Chilkat ActiveX. Select “Project–>References” from the VB6 menu and then check the checkbox next to the Chilkat ActiveX component to be referenced. (Select “Chilkat Util” for the CkStringArray object.) The complete mapping […]

ActiveX on Windows Server 2003 and SQL 2005?

Question: I want my web hosting company to install your XML and Encryption controls on the server so I can use the ASP code. They are asking me the following question. “Can you verify with them that they support Windows Server 2003 and SQL 2005? IO am not seeing these listed on their site.” Answer: Yes, all of the Chilkat […]

Invalid class string / Invalid ProgID

This note applies to the instantiation of ActiveX components (not .NET assemblies). If a call to CreateObject (VBScript) or Server.CreateObject (ASP) or sp_OACreate (SQL) fails with the following errors: Invalid class string Invalid ProgID It indicates that the ActiveX has not been registered via regsvr32 on the computer, or the registry permissions on the ProgID key prevent the object from […]

x64 ActiveX Registration on Windows 2008 Server

For the most part, a 32-bit Chilkat ActiveX DLL will run on a 64-bit computer. However, there is an issue (to be explained here) that requires the ActiveX to be built specifically for x64. Chilkat provides separate 64-bit ActiveX’s on it’s downloads web page, and these should be used on x64 systems. The problem occurs when a method returns an […]

Matching DES Encryption in Java and VBScript

This page shows both Java JCE DES encryption examples, as well as examples using the Chilkat Encryption component in both Java and VBScript. Each of these examples produces identical output: The string: ABC123 encrypts to 6DA02B6AE1EA32D8 (as a hexidecimalized string) Java bytes-to-hex Encoding Utility Function public static String toHex (byte buf[]) { StringBuffer strbuf = new StringBuffer(buf.length * 2); int […]