Click to See Complete Forum and Search --> : Can't access CAssoc member pNext?


sutm
December 28th, 2002, 06:53 AM
Hi there,

I've recently tried to port my VC++6 application to VC++.NET. I've come across a compilation error as follows:

I've a CMap declared. In it is a CAssoc struct, which contains the pNext member that points to the next CAssoc struct. By default, all members in struct should be public. So I'm lost when it says that the pNext member in the CAssoc struct cannot be accessed by the following line of code:

pAssoc->pNext;

I'll be most grateful if anyone can provide me with some explanation or how to go about solving it. Meanwhile, I'll have to stick to my VC++6 IDE.


Thanks in advance :)
sutm@yahoo.com