FTDI Community

General Category => Discussion - Software => Topic started by: allenhuffman on July 03, 2023, 05:48:06 PM

Title: Heads up: LibFT4222-v1.4.5.zip contains a "binary" ftd2xx.h file
Post by: allenhuffman on July 03, 2023, 05:48:06 PM
I just learned there is a LibFT4222-v1.4.5.zip out, so I was trying to use it. There are two header files included:


My IDE could open the second file opens just fine, but the first one is rejected as being a binary file ("Cannot open binary files as text files"). Using a hex editor, I can see that the ftd2xx.h file does appear to be non-ASCII. It has a zero byte every other character, so I am guessing it was saved out as something like unicode (whatever format uses two bytes per character, I guess).

Compilers may or may not have an issue with that (I do not know what the current C standard says regarding file formats). The editor I am using will not open it. (And even saving it as a .txt or copy/pasting in to another editor and saving retains the 0 -- I guess it's a standard file format Windows supports).

Just a heads-up on this. I have reported it to FTDI, and I am going to either write a quick script to convert the file, or find some tool to do it for me.

Cheers...
Title: Re: Heads up: LibFT4222-v1.4.5.zip contains a "binary" ftd2xx.h file
Post by: FTDI Community on July 04, 2023, 04:27:37 PM
Hello,

You can also reference the latest version of ftd2xx.h in the latest 2.12.36.4 (https://www.ftdichip.com/Drivers/CDM/CDM%20v2.12.36.4%20WHQL%20Certified.zip) driver files.

Best Regards,
FTDI Community
Title: Re: Heads up: LibFT4222-v1.4.5.zip contains a "binary" ftd2xx.h file
Post by: allenhuffman on July 05, 2023, 02:47:50 PM
Hello,

You can also reference the latest version of ftd2xx.h in the latest 2.12.36.4 (https://www.ftdichip.com/Drivers/CDM/CDM%20v2.12.36.4%20WHQL%20Certified.zip) driver files.

Best Regards,
FTDI Community

E-mail support pointed me to this, and the file contained inside (50K versus 101K) does appear to be in a valid format for use with GCC, etc.