Sorry , forgot add these too:
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include "FTD2XX.h"
#pragma comment(lib, "FTD2XX.lib")
Example#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include <stdio.h>
#include "FTD2XX.h"
#pragma comment(lib, "FTD2XX")
int main(int argc, char **argv)
{
FT_STATUS ftStatus;
DWORD numDevs;
ftStatus = FT_ListDevices((void*)&numDevs, NULL, FT_LIST_NUMBER_ONLY);
if(ftStatus == 0)
{
DWORD uDevNo;
char Buffer[64]; // more than enough room!
for(uDevNo=0; uDevNo<numDevs; uDevNo++)
{
ftStatus = FT_ListDevices((PVOID)uDevNo,Buffer,FT_LIST_BY_INDEX|FT_OPEN_BY_SERIAL_NUMBER);
if (ftStatus == FT_OK) printf("%u %s\n", uDevNo, Buffer);
printf("%u %s\n", uDevNo, "Error");
}
}
return 0;
}