Non-recursive Directory Tree Traversal

ASP: Iterate over Files and Directories in Filesystem Directory Tree SQL Server: Iterate over Files and Directories in Filesystem Directory Tree C#: Iterate over Files and Directories in Filesystem Directory Tree C++: Iterate over Files and Directories in Filesystem Directory Tree MFC: Iterate over Files and Directories in Filesystem Directory Tree C: Iterate over Files and Directories in Filesystem Directory […]

How to use an ActiveX in VB6

There are two ways to reference an ActiveX in Visual Basic 6.0.  The first is to select “Project–>References” from the VB6 menu.  The second way is to select “Project–>Components…” from the VB6 menu. Important:  You should do one or the other, but not both. Which do you choose?   Use “Project–>References” if you are going to instantiate the ActiveX dynamically.  In […]

Converting a PuTTY Private Key (.ppk) to OpenSSH (.pem)

ASP: Convert PuTTY Private Key (ppk) to OpenSSH (pem) SQL Server: Convert PuTTY Private Key (ppk) to OpenSSH (pem) C#: Convert PuTTY Private Key (ppk) to OpenSSH (pem) C++: Convert PuTTY Private Key (ppk) to OpenSSH (pem) MFC: Convert PuTTY Private Key (ppk) to OpenSSH (pem) C: Convert PuTTY Private Key (ppk) to OpenSSH (pem) Delphi: Convert PuTTY Private Key […]

Error: The system cannot find the file specified

If a Chilkat method fails because a file was not found, the LastErrorText will contain information such as this: ChilkatLog: LoadFromFile: DllDate: Sep 1 2009 filename: myCert.cer Failed to open file (2) filename: myCert.cer currentWorkingDirectory: c:\windows\system32\inetsrv osErrorInfo: The system cannot find the file specified. WindowsError: 0x2 Failed. There are two key pieces of information to allow you to know the […]

Is Calling .Dispose() Recommended for C# and VB.NET?

Question: In your examples online, we have noticed that .Dispose() is never called after using Chilkat classes (we are writing in C#). Is calling .Dispose() recommended?  Does your code not need to destroy any native resources or handles that would normally be cleaned up in the Dispose method (the IDisposeable interface) ? Answer: For objects that manage a TCP/IP socket […]

regsvr32 Problems

ActiveX components and controls have been around for many years.  Unfortunately, when regsvr32 fails to register a DLL, the only information provided is an error code.  Usually in the format of a 32-bit hex number, such as 0x80004005 (although not necessarily that particular error code, I simply picked one at random for this blog post). If you search the Internet, […]

su Supported by Chilkat SSH for Linux/Unix Servers?

Question: I don’t see anything in the documentation or examples to indicate that “su” is supported w/ SSH?  Is it possible to login to a user account and then “su” to root? Answer: “su” is a command just like any other Unix/Linux command. It is typed at the command prompt, it does something, and a response is written to standard […]

Possible to use Email in non-HTML Mode Only?

Question: Is it possible to use the email component in non-HTML mode only? For instance, I don’t want to be seeing HTML in the .Body after downloading the message from the server. Answer: Any given email can have a plain-text body, an HTML body, or both. The emailObject.Body property will contain the HTML body if present, or the plain-text body […]