Reputation: 300
i have a question about the types of files and folders which contains the cdm v2.10.00 whql certified.rar
In the rar there's 3 folders:
Static\i386, Static\amd64, i386, amd64
in a simple project with C++, How can i know from what folder must i take the ftd2xx.dll? I think ftd2xx.h is the same. But how about the dll? In Static folders there's only .lib files. For what use its the lib files?
Upvotes: 0
Views: 3059
Reputation: 419
The API for the FTDI D2XX drivers comes in two versions and each version has a 32-bit and a 64-bit binary, as you might have guessed from the folders in the rar archive:
Static\i386, Static\amd64, i386, amd64
Here is how you use them:
Keep in mind, that for all these versions, you use the same header file ftd2xx.h from the archive.
Upvotes: 1
Reputation: 15232
if you create 32-bit software, you have to use the i386
version, if you create 64-bit software, use the amd64
version.
The .lib
in the static folders, is when you static link. The .dll
is for dynamic linking. That means if you distribute your software, you must distribute the dll too. The static version will everything inside the .exe you create.
There should be some documentation where this is explained. You probably need to #define
something depending on whether you use the static or dynamic version. (unless the .h
is not 100% identical, then you simply choose the corresponding .h
file).
Upvotes: 0