Jeffray ,
Thank you for your help.I managed to write a function which sends string to serial.The code I wrote is below.
int CMC35ProjectDlg::Send(CString szBuf)
{
///////////
//Begin
//////////
//Send Data to serial Port
DWORD dwBytes=0;
// BYTE d=data;
// int ret=d;
int ret;
//...
Hi I am new in programming in Visual c++ but i have written a small programm which transmits integers to serial port.Below is the code of tree functions 1)CreateCommunication which open a serial port , 2)Send which sends integers to serial port and 3)Get whinh receives integers from serial...
Hi,Iam new to programming in Visual C++.I am trying tobuild a programm which sends string to serial port.I have managed to open and configure the serial port.A friend of mine wrote a code for me which send integers to serial port.Below is this code.
int CMC35ProjectDlg::Send(BYTE data)
{...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.