Those of you who wish to use this code should consider purchasing this essential book. It is distributed with Dan Appleman’s book “Visual Basic Programmer’s Guide to the Win32 API” – click here for info on this book.
Implementing the FT_PROGRAM_DATA structure and the respective DLL-calls with VB6 has some “hooks”… The code uses another DLL, APIGID32.DLL, from DESAWARE Inc. You may find that instead of a longer string you actually get the sum of the two substrings. This is especially evident when you attempt to concatenate strings containing numbers. The code can be easily modified to work with the original FT_PROGRAM_DATA structure and older driver/DLL versions: simply remove the signature1, signature2 and version entries from the start of the structure and also remove the Rev 5 (FT2232C) entries from the bottom of the structure. Visual Basic now has the string concatenation operator (&) which should be used for this purpose. The DLL version must be greater than 2.1.3.1 and the latest drivers must be installed for this example to work. This enhanced version has restructured the program to use a separate unit to set up the DLL calls (module1.bas) which can then be re-used for developing other applications and has been updated to use the new EEPROM structure with FT2232C support.
#Visual basic strings how to#
This application example was originally donated by Christian Vogt of Itec-technology and illustrates how to program the optional 93C46/93C56/93C66 EEPROM in VB6 using the latest D2XX driver release.