Jayesh,
Try this web site,
www.sofdesign.com ,they distribute the CommTools package. If
you have questions about the package e-mail achalk@intex.net.
also check out Pat Boens's reply to my message, he says that its more of a 16/32 bit win api problem.
Good Luck
Mike
>Hi Mike
>
> Thanks for the reply. One more favour please. From Where can I get
>commtools library.
>
>Regards
>Jayesh
>
>
>>This seems to only work in FoxPro for DOS (according to the Lang. Ref). I did get it to work in FoxPro for Dos but, I had to issue a dos mode command first and the cFileName of the FOPEN command had to be a valid DOS Name (COM1: works but com1 won't)
>>
>>.
>>.
>>.
>>!MODE COM1:,8,1,n,-
>>cSuccess = FOPEN('COM1:',10)
>>.
>>.
>>.
>>
>>When I had to use com ports with VFP I had to get a third party library (CommTools).
>>
>>
>>>Hi All,
>>>
>>> I want to know how can i open/read com port using FOPEN()
>>>when i tried FOPEN('com1',10) it returns -1 and FERROR() returns
>>>5 (file access denied). Please put some sample code if possible.
>>>
>>>Thanks in advance
>>>
>>>Jayesh