I have "grepped" (The great grandfather of "Googled") the internet for just this information only to find old snippets of Borland code, Visual Basic 2005 and Visual C# examples. I have also seen vague references to "Calling serial interface methods via the MFC". None of which pertain to the free tools I can get today.
The problem: I have an embedded device (A model rocket altimeter of my own design based on a PIC microcontroller) I would like to "talk to" using my XP or Vista laptop. The only interface I have to the embedded controller is a Plain Jane serial port on the embedded controller, and either a hard wired port or a USB->Serial perverter on the laptop PC. I can interface to the embedded controller now using a terminal emulator application like TeraTerm. I would like to create a slick windows application to set flight parameters and download flight data.
- I would like the ultimate interface to be using a window (vs. a console) interface under the aforementioned operating systems.
- I am proficient in C and Java, and would like to use C++ as the development language of choice; I am not afraid of using Classes.
- I would like to use the cool, glossy Visual Studio 2008 (Express Edition)
- Is there a complete example of a simple application that will get a handle of a serial port, and use the associated class methods to read and write a character? A string? Validate the existance of the logical/physical device?
- Is there a SerialPort Class (like in VB 2005) that will work out of the box for Visual Studio 2008 Express?
Any direction/hints/commiseration from informed individuals would be appreciated, even if it is an admonition to "RTFM" as long as the requisite "FM" is included in the rebuke.