Socket Programming – “Must-Know” Concepts

If you’re just starting to program with TCP connected sockets using the Chilkat Socket API, then these concepts should be understood before beginning. 1. Receiving Data from a Connected Socket. The ReceiveBytes and ReceiveString methods will return whatever data has already arrived and is available on the connected socket.  It is not guaranteed to return the complete amount of data […]

Windows Application User-Interface Freezes?

Question: I recently purchased the Chilkat HTTP component and am using it with a Visual FoxPro application. However, each time I run it the form freezes and I get the Not Responding message in the title bar. I have an animated GIF that I am using as a quasi-progress meter but that freezes as well. As soon as the HTTP […]

FTP MLST command?

Question: A quickie question about the FTP2 control. I have some clients with strange FTP servers that return the directory listings in formats that no control seems to be able to handle (although I have not tried yours!). However, it is next to impossible to test, since I do not have access to their server. For them, we use the […]

Using Chilkat in Managed C++

The Chilkat VC++ static libraries are for unmanaged C++ applications. A Managed C++ application (using Microsoft’s Managed Extensions for C++) runs within the .NET Framework and therefore must use the Chilkat .NET assembly. The Chilkat C++ online reference documentation and online examples are for unmanaged C++ applications. For Managed C++, the best choice is to read the C# online documentation […]

IMAP – Search for Messages by Message-ID or any Email Header Field

Using the Chilkat IMAP API: To download emails having the exact contents of a header field, or all emails where a given header field contains a specified substring, use the Search method like this: (C++) CkMessageSet *mset = imap.Search(“HEADER Message-ID 48208D0C”,true); (C#) Chilkat.MessageSet mset = imap.Search(“HEADER Message-ID 48208D0C”,true); If the Search method returns a non-NULL message set object, then download […]

Saving an RSA key pair to a file

Question: I’m having trouble finding a good/complete VB.Net Chilkat example of how to generate an RSA key container with a key pair (private and public) and save that key container to a file. Answer: I think I can clarify.  With 2 points: 1) In actuality, an RSA private key also contains the public-part of the key.  It contains the all […]

Delete Files from a Zip Archive

Question: “I’ve been trying out the ZIP package that you guys have and for the most part it’s great. I do however have a question about folder manipulation. What I would like to be able to do is individually remove files from the zip and if the directory is empty I would like to remove the directory from the zip […]

Upload from ASP code to FTP Server

I get the following support problem about once per week from ASP developers: The ASP developer wants to upload a file from the client computer where the browser is running, to an FTP server.  He writes ASP code to do the FTP upload, but cannot understand why the file is not found.  The thing the ASP developer doesn’t realize is […]

IMAP “Not in the authenticated state” Error

The blog post explains the “Not in the authenticated state” error. ChilkatLog: SelectMailbox: DllDate: Feb 15 2010 UnlockPrefix: Anything for 30-day trial Username: NETWORK SERVICE Component: .NET 2.0 mailbox: Inbox Not in the authenticated state This error happens if the caller is either not connected to an IMAP server, or is connected but the Login method was never called or […]

Using 32-bit or 64-bit ActiveX Components on x64 Windows

64-bit Windows is capable of running applications in both 32-bit mode and 64-bit mode. If the application process is running in a 32-bit address space, the DLL must also use a 32-bit address space. (In other words, it should be a DLL compiled for the Win32 platform.) If the application process is running in a 64-bit address space, the DLL’s […]