This doesn't look like an error message which would be generated by the code you posted. Is there an fseek() in the code as well? And what service pack do you have on VFP 6? Finally, with the existance of COM and COM +, you might want to find another name for the file. Perhaps 'com2' has become a reserved word and VFP is getting confused. Dave Dardinger
Trying to open COM ports with low-level IO really isn't a good idea. While it may work in Win 95 / 98 / SE / ME, it most likely won't work in Win NT / 2000 / XP. Instead you should use the MSCOMM32 control - there are a number of Knowledgebase articles with VFP examples, not to mention those in the sample code provided with VFP.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.