The first parameter of
FT_OpenEx
is of type
LPVOID
to pass different types (
integer
and
char *
) according to the second parameter. So you must use casting:
ftStatus = FT_OpenEx((LPVOID)"FT232R USB UART",FT_OPEN_BY_DESCRIPTION,&ftHandle);
If the FTDI DLL is present on your system (it is installed to the system folder when installing the device), all you need are the header file ftd2xx.h for including and the library ftd2xx.lib for linking.