HadiRezaee
Technical User
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);
}
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);
}