Hi there.

I have to modify some variables stored in a pointer say xx.

From VC++ debug Watch Window, I can expand xx to several data ([yy], _a1, _a2, etc).

So, when I add

xx->_a1=0.22 (it is a double type), it is OK.

But, when I try to do

xx->yy=0.34

or

xx->[yy]=0.34, it complains with the following message:

yy (or [yy]) is not a member of Data_main (where xx is Data_main data type).

I looked at the definition, and I see that I do not see yy or [yy] defined.

Can anyone tell me why I can see all the data under [yy] in xx in debug Watch window? (when I expand the pointer xx it?)

Thanks.

post code

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.