Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MSCOMM QUESTION !!!

Status
Not open for further replies.

HadiRezaee

Technical User
Mar 9, 2001
165
IR
Hi all.
I want to give telephone number to mscomm object,
So, i must use BSTR string ???
Because, SetOutput() function get VARIANT variable ...
If your reply is YES, please write example about converting char * variable to BSTR variable.
And write example about give data to BSTR variable.

Thanks.

void CTerminalDlg::OnFileConnect()
{
m_comm.SetCommPort(3);
m_comm.SetSettings("9600,N,8,1");
m_comm.SetRThreshold(255); // BITS FOR RECEIVE ...
m_comm.SetPortOpen(TRUE);
m_comm.SetOutput(/* MY QUESTION ... */);
m_comm.SetPortOpen(FALSE);
}
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top