Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

watching CArray object items

Status
Not open for further replies.

giggetto71

Programmer
May 28, 2002
1
NL
Hello,
I am trying to watch a variable
Code:
CArray<CFoo,CFoo>myvar
where
Code:
typedef struct tagCFoo 
{   CString name; 
    long num1; 
    long num2; 
} CFoo;
Now, I am able to make it work fine in the code, but when I try to watch the variable myvar (in debug mode) I am not able to see the i-th element, but I can only watch the first of the array. Of course I tried already with
Code:
 myvar[i]
but I get a &quot;CX0058: Error: Overloaded operator not found.&quot;

Does anybody know if there is a way to watch the i-th item of the CArray object as it is normally possible with traditional array?
Thanks in advance
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top