christianlott1
2/18/2011 6:01:00 PM
GS, I'd still need to send commands to it. I'm already using ReadFile:
Do
retVal = ReadFile(ReadPipe, tmpRead, 1256, bytesRead, 0&)
readData = readData & Left(tmpRead, bytesRead)
DoEvents
Loop While retVal > 0
The example works fine for 'ping' but now I'm testing on the command
prompt (CreateProcess 'cmd') and it crashes.
retVal = 1
then stalls my program the second time through the loop.