I need to write a program to connect a eTrex Legend GPS device from Garmin (device manufacturer) to a PC through the RS232 port. I'm using the Windows API. I need to send a packet and recieve an acknowledgement. I used WriteFile and then ReadFile but I got junk. Should I use an event or something to wait before reading or wat. Please let me know the correct sequence of how to communicate (need it badly). The windows API help is absolutely useless.
Thanks