Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

These folders come from the folder "FileToExportForApplication" in the project folder "TE-USB-Suite\TE_USB_FX2_CyAPI".
"FileToExportForApplication" contains "TE_USB_FX2_CyAPI.h", "CyAPI.h" and two folders; "DLL32" and "DLL64". "DLL32" and "DLL64" folders contain files with the same name but compiled respectively for 32 or 64 bit operating systems.

Note
titleThe Header File header file "TE_USB_FX2_CyAPI.h" to use with DLL should be picked from "TE-USB-Suite\TE_USB_FX2_CyAPI\FileToExportForApplication"

Two different header files exist:

  • one is used for the creation of TE_USB_FX2_CyAPI.dll DLL (not inside "FileToExportForApplication", used to create the TE_USB_FX2_CyAPI.dll DLL from source code and CyAPI.lib).
  • another header file (with the same name) is exported for the creation of application programs that use TE_USB_FX2_CyAPI.dll DLL ("FileToExportForApplication").

The latter has some additional lines with regard to the former. This happens to solve some compilation/linking problems that could rise in applications compiling/linking.

The lines of difference are the followings (added to TE_USB_FX2_CyAPI.h used for applications).

Code Block
languagecpp
#pragma once
//#include <WinDef.h> NO, it fails at 32 bit
#include <windows.h>
#include "CyAPI.h"
typedef unsigned char byte; 

...