Hi,
I'm trying to convert my customers 16bit app to 32bit and i'm having a problem with Readcomm. Their pc is connected to a serial swipe card, so i'm using EnableCommNotification to initiate the reading of the comm port however, i seem to only read in 8 characters. I have copied my 16bit code (which works perfectly) and was wondering if there were other changes needed?
Any ideas?
Thanks in advance
Pete
I'm trying to convert my customers 16bit app to 32bit and i'm having a problem with Readcomm. Their pc is connected to a serial swipe card, so i'm using EnableCommNotification to initiate the reading of the comm port however, i seem to only read in 8 characters. I have copied my 16bit code (which works perfectly) and was wondering if there were other changes needed?
When my dialog is defined i do this:
oDlg:bCommNotify := { | nComm, nStatus | get_card( nComm, nStatus ) }
And on the ON INIT of the dialog, i have the following:
EnableCommNotification( nComm, oDlg:hWnd, 1, -1 ))
My Get_Card function:
FUNCTION get_card(m_port,stat)
LOCAL startstr, buffer, sensorstr := ""
buffer := SPACE(100)
//turn off comm notification for this function
EnableCommNotification( m_port, wbent:hWnd, -1, -1 )
FlushComm( m_port, 0 )
//wait long enough for port to fill
waitseconds(1) //Doesnt matter how long i increase this
? ReadComm(m_port,@buffer) //Always returns 8Any ideas?
Thanks in advance
Pete