Utf8 C++ property allows for utf-8 or ANSI “const char *”

All Chilkat C++ classes have a Utf8 property. For example: class CkEmail : public CkObject { public: CkEmail(); virtual ~CkEmail(); … bool get_Utf8(void) const; void put_Utf8(bool b); … const char *addFileAttachment(const char *fileName); … }; The Utf8 property controls how the bytes pointed by “const char *” arguments are interpreted. By default, “const char *” strings are interpreted as ANSI […]

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 […]

Exchange Server Unencrypted Login/Password w/ POP3

Question: We are currently using Chilkat to retrieve e-mail for a number of our applications. A client of ours has updated their exchange mail server and they have disabled the pop3 service because of authentication issues (the user/password is sent unencrypted and would be a threat). Are there any other possibilities within the scope of chilkat to retrieve mail from […]

ChilkatDotNet2.dll on x64 from a Windows Service

Here’s the secret to getting the .NET runtime to load the ChilkatDotNet2.dll from a Windows Service: It must be installed in the GAC, but there’s a separate GAC for 64-bit assemblies: (with permission from the Chilkat customer) I was able to find a solution to this. I’m running a 64-bit version of Vista, and there turns out to be a […]

Bitvise WinSSHD request “dumb” PTY problem

I’ve found the following scenario when testing SSH shell with the Bitvise WinSSHD server. If a request for a “dumb” pseudo-terminal is sent via the Chilkat SSH component’s SendReqPty method, the WinSSHD server responds with a success status, however, it really fails. The SSHD log has the following error message: 000000000116 2008-11-19 16:29:41.185Z WinSSHD 5.01 [297] Warning Session thread 1014 […]

Chinese Character String Literals in VC++ 8, 9, 10, …

It is possible to use string literals within your C++ code — as long as you save your C++ source file using the utf-8 character encoding. For example, open a .cpp source file and add this line: CkString str1; str1.appendU(L”京”); When you try to save the .cpp source file, you may get a message such as: “Some Unicode characters in […]

Setting the Initialization Vector for Encryption

Question: We’re trying to sync up our Chilkat component with another encryption component but can’t get the initialization vector to match. Is that compiled into the Chilkat module, or can it be changed via a component property? Answer: Yes, the Chilkat encryption component provides the “IV” property. The type depends on the programming language: ActiveX: Variant containing byte array. .NET […]

WSAECONNABORTED An established connection was aborted by the software in your host machine.

Question: Do you have any suggestions on this error? I have all the service packs installed for server 2003. Do I need to send shorter strings? I don’t seem to have any issues with small messages. ChilkatLog: SendString: DllDate: Sep 12 2008 Username: XYZABC Component: .NET 2.0 NumChars: 502583 Charset: ansi NumBytes: 502583 SocketError: WSAECONNABORTED An established connection was aborted […]

ASCII Mode in SFTP? (Secure File Transfer over SSH)

SFTP is not in any way related to FTP. FTP is the “File Transfer Protocol” whereas SFTP is a subsystem of the SSH protocol. SFTP is a protocol for file transfer over SSH. (Not to be confused with “FTPS”, which is the FTP protocol over SSL/TLS.) Most people familiar with FTP know about transfer modes: binary and ASCII. A file […]

SMTPQ max threads?

Question: With the SMTPQ service, do you have some guidelines on the best practice settings for the number of threads required for sending different quantities of email? Answer: The SMTPQ is an SMTP client, and thus it connects to SMTP servers to send email. However, it may be configured to use any number of threads so theoretically each thread may […]