Or you can just define it outside SerialCommunication in the .cpp file.
Or you can just define it outside SerialCommunication in the .cpp file.
J-P Nurmi
You mean...global variables that are not members of the class? *scared*
But if you make it static, it's only visible inside the compilation unit.
J-P Nurmi
or use an enum:
Qt Code:
class SerialCommunication { private: enum { RX_BUFFER_SIZE = 128 }; };To copy to clipboard, switch view to plain text mode
Cruz (6th February 2009)
Bookmarks