![]() ![]() This code is provided “as-is” for illustration purposes only and as such neither FTDI or Itec-technology provide technical support for this VB6 code or the APIGID32 DLL functionality. 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. 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. 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. ![]() Debug.WriteLine (oFoo.GetLastError ()) Return. oFoo.CreateObject ( 0, 0, 0) Catch ex As Exception. Private Sub Button1Click (.) Dim oFoo As New IDLexFooClass () Try. Use the following code to initialize the object with no parameters. 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. Initiation Without Parameters in Visual Basic. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |