How to view contents of a vector array in debug window

Questions about wxWidgets running on MS.NET, mono or Portable.NET ? Ask it here !
Post Reply
MuhammadSohail
Experienced Solver
Experienced Solver
Posts: 96
Joined: Fri Jun 17, 2005 1:53 pm
Location: Germany
Contact:

How to view contents of a vector array in debug window

Post by MuhammadSohail »

Hallo all,

Does any one knows, how can i view the contents of the specific index of the vector array in the debug window. I m using Microsoft visual studio 2005.


Thanks
Last edited by MuhammadSohail on Sun Apr 09, 2006 11:45 am, edited 1 time in total.
micros
Super wx Problem Solver
Super wx Problem Solver
Posts: 317
Joined: Sat Mar 18, 2006 10:41 am
Location: Ustek, Bohemia

Post by micros »

If you mean in MSVC (prior to 2005, which is already smart enough; but this will work in that, too), it's

Code: Select all

p_vec->_Myfirst[index]
If you need to know the number of elements, it's

Code: Select all

p_vec->_Mylast - p_vec->_Myfirst
EDIT: Oops, I think I've answered a different question.
Post Reply