Can somebody kindly help please?
I need to print to a BLUE Tooth port COM6, using the posted examples , I got error messages on defination
GENERIC_WRITE, which header files i need for definations: GENERIC_WRITE, OPEN_EXISTING and FILE_ATTRIBUTE_NORMAL ??
Thanks again...
best regards,
CL Low
hOut := CreateFile( "COM6:",GENERIC_WRITE, 0, 0, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL )
IF hOut==-1
MsgStop("Port Impression non trouvé, Impression Impossible")
ELSE
FOR i = 1 TO Len( cText )
//WriteByte( hOut, Asc(SubStr( cText, i, 1 ) ) )
WriteByte( hOut, SubStr( cText, i, 1 ) )
SysRefresh()
NEXT
CloseHandle( hOut )
MsgStop("Port send successfully")
endif