![]() |
Error : no operator found
This is my code for the serial port
Code:
BOOL CSerialCom::OpenPort(CString portname)Code:
error C2678: binary '+' : no operator found which takes a left-hand operand of type 'const char [5]' (or there is no acceptable conversion) |
re: Error : no operator found
You need to cast "//./" to a CString so that it invokes CString :: operator +(). There is no (char*) :: operator +(), which is what you're trying to invoke.
|
| All times are GMT +5.5. The time now is 23:40. |