the watches window adds, automatic, local variables but not what i need to test. for that i nee do it manually(select the variable and then click on right button for add it to watches window).
until here fine, but see these: i have a class button with a getTop() function member.
vector<button> btnarray;
int WinMain()
{
//int arraysize=ArraySize(btnarray, button);//geting the array size
btnarray.resize(8);
for (int i=0; i<btnarray.size(); i++)
{
int b=100 + ((i+1)*50);
btnarray[i].setTop(b);
//OutputDebugStr(to_string(btnarray[i].getTop()).c_str());
btnarray[i].setLeft(0);
btnarray[i].setText(to_string(i));
btnarray[i].MouseClick=[i]()
{
MessageBox(btnarray[i].getText());
};
}
now heres the questions points:
- how can i add the btnarray [ i ].getTop() to watches window and see it's value?
- how can i see the string of OutputDebugStr() on debug mode?