Value of vector while debugging in VS
I've searched the forum and on google but without any success.
Is there a way to display the value of the actual elements in a stl vector while debugging in VS 6 / 2k3?
Assuming you haven't changed the STL implementation that your compiler ships with, with MSVC 2003 you can use a watch expression of ((vec)._Myfirst)[n] to see the nth item in the vector.
Did you mean like this for example:
((m_ServerToClientSocketVector)._Myfirst)[0]
right after I've done
m_ServerToClientSocketVector.push_back(tmpInfo);
I get this error as value in the watch tab:
error: managed EE does not understand expression's syntax
My code is non managed c++.
((m_ServerToClientSocketVector)._Myfirst)[0]
right after I've done
m_ServerToClientSocketVector.push_back(tmpInfo);
I get this error as value in the watch tab:
error: managed EE does not understand expression's syntax
My code is non managed c++.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement