sylvain2222
FabulaTech Forum Newbie
Posts: 3
|
|
Problem using virtual port with windows API
on: Dec 4th, 2006, 12:10pm |
Quote Modify
|
I try to read from a virtual port using windows API method ReadFile (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/fs/readfile.asp). This method always return 0 byte received. I successfully open the com port with : CreateFileA("COM8", 80000000h + 40000000H, 0, 0, 3, 0, 0) I successfully call ReadFile from the port with : ReadFile(CMD:HandlePortComCommande, CMD:carac, 1, NbRead, 0), but nbRead always return with a value of zero. Code works with other virtual port supplier and works with real com port.
|