Hi folks,
Help with MSCOMM please. Setting up the commport for connection to a gps. Using mfcVC++ but not experienced enough to get to grips with my own classes etc. Have imported the ActiveX MSComm control into programme. Am using and so far set a dialog up to interact with the ports settings - baud, parity etc. no problem but am stuck at getting the gps data from the GetInput() function into an edit box. I gather it is returning a variant type data, but am unable to gather what and how much.
Q Could someone explain/show the code required to get this from the variant into the edit box please.
Have looked for help in MSDN but that only gives advice for the VBasic version for the MSCOMM control, and as for an explantion of a variant !@##$!#% Any explanation of the above and the wrapper classes in the MSComm class will be much appreciated.
Thanks in advance
Richard
Help with MSCOMM please. Setting up the commport for connection to a gps. Using mfcVC++ but not experienced enough to get to grips with my own classes etc. Have imported the ActiveX MSComm control into programme. Am using and so far set a dialog up to interact with the ports settings - baud, parity etc. no problem but am stuck at getting the gps data from the GetInput() function into an edit box. I gather it is returning a variant type data, but am unable to gather what and how much.
Q Could someone explain/show the code required to get this from the variant into the edit box please.
Have looked for help in MSDN but that only gives advice for the VBasic version for the MSCOMM control, and as for an explantion of a variant !@##$!#% Any explanation of the above and the wrapper classes in the MSComm class will be much appreciated.
Thanks in advance
Richard