The .NET Assembly “Incorrect Format” Error

If you get this error in a Windows Forms project… Look in your Project–>Properties (ALT+F7) and go to the “Build” tab. You’ll see the “Platform target” – If it’s set to “x64”, then make sure you reference the 64-bit Chilkat assembly. – If it’s set to “x86”, then make sure you reference the 32-bit Chilkat assembly. – If it’s set […]

C Language Callbacks

This example demonstrates the general pattern for implementing some standard event callbacks functions for the Chilkat “C” API.  All Chilkat “classes” what have events will use the standard Chilkat events shown in the example below (AbortCheck, PercentDone, and ProgressInfo). This example demonstrates callbacks for an SFTP download, but the same technique applies to any other Chilkat “class”, such as HTTP, […]