>We're converting a FoxPro 2.5/DOS application to VFP 6.0. One of the functions of the application was uploading data from a handheld bar-code scanner through the PC's serial port. In the DOS application, we were able to do this quite easily with fopen, etc. Unfortunately, trying to open the COM port with fopen under VFP either returns a -1 saying that the port couldn't be opened or generates the dreaded 'Invalid seek offset' message. I've tried with 3.0, 5.0 and 6.0 and get the same results.
>
>Am I overlooking something or is this a known problem with VFP? If so, does anyone have any workarounds?
Try MSCOMM instead. There are two samples in the Knowledge Base section. I am not sure if the VFP fopen even works properly.
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only