by Antonio Linares » Wed Nov 09, 2005 10:13 am
We have just published a new FWPPC build.
In samples\bluetoth.prg, please change local hOut := BlueOut() into:
#define GENERIC_WRITE 0x40000000
#define OPEN_EXISTING 3
#define FILE_ATTRIBUTE_NORMAL 0x00000080
...
local hOut := CreateFile( "COM6:",; // change the number as needed
GENERIC_WRITE, 0, 0, OPEN_EXISTING,
FILE_ATTRIBUTE_NORMAL )
MsgInfo( Str( hOut ) ) // Lets see if we get a valid handle, not -1
...
and change CloseComm( hOut ) into CloseHandle( hOut ).
Thanks for your feedback,