01-27-2016, 04:47 PM
(01-27-2016, 04:35 PM)admin Wrote: I have never used the command to get the queue status, but it is possible that it only returns the amount in the queue (which could be full).
I would use the FT_Read (that's what I use).
Are you doing this in PureBasic? If so, how are you opening the FTDXXXX.dll? I downloaded PureBasic and I am interested in writing some sample code for SCP so that it can be used under Windows, Mac, and Linux.
First you need to open the dll:
Code:
hndFTDLL = OpenLibrary(#PB_Any, GetFolderPath(#CSIDL_SYSTEM) + "\ftd2xx.dll")
if hndFTDLL = 0
; Error loading 'ftd2xx.dll'
End
EndIf
You can then call the functions using something like:
Code:
CallFunction(hndFTDLL, "FT_Read", ftHandle, @Buffer, BytesToRead, @BytesReturned)
All this is explained in more detail in the online PureBasic manual.
If I remember right, the demo version of PureBasic is quite restrictive in what you can do with it, so the above may not work if it is just the demo version you have.
Kind regards,
Francis
Dreamland Fantasy Studios
http://www.dfstudios.co.uk
http://www.dfstudios.co.uk