URGENT HELP regarding vector size

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • 82rob
    New Member
    • Sep 2006
    • 7

    URGENT HELP regarding vector size

    Dear Fellow members,

    I am currently working on a RS232 interface. In the RS232 file the buffer is declared as:-
    vector<unsigned char> m_inbuffer;

    It is stated under the "class protected:". I want to increase the size of buffer so as to increase the capacity to receive more characters from the device.

    Can anyone in this forum help me in finding out the solution????

    Best Wishes!
  • zahidkhan
    New Member
    • Sep 2006
    • 22

    #2
    Originally posted by 82rob
    Dear Fellow members,

    I am currently working on a RS232 interface. In the RS232 file the buffer is declared as:-
    vector<unsigned char> m_inbuffer;

    It is stated under the "class protected:". I want to increase the size of buffer so as to increase the capacity to receive more characters from the device.

    Can anyone in this forum help me in finding out the solution????

    Best Wishes!

    m_inbuffer.resi ze(m_inbuffer.s ize()*2);

    Comment

    Working...