I am trying serial port communications between two computers.
1.To send data,one computer runs a DOS-based program and use _outp() to send an integer.
2.To receive data,the other runs a windows-based program developed using MFC of VC,and MSComm is used to receive data.
Now I have trouble in extract the integer from the VARIANT structure after trying all bVal,iVal,dblVal,lVal....the retrieved data from these members are not correct.
Please give a hand to me.Thank you very much!