Subj : Declaring a pointer to a To : Neil Heller From : Jasen Betts Date : Tue Jan 14 2003 08:32 pm Hi Neil. 13-Jan-03 09:54:00, Neil Heller wrote to Jasen Betts JB>> I think you need to post an example with more flesh. NH> Therein lies a problem. The code is hundreds of lines long and NH> it's encased in a Windows program. Yes, I'm aware that I could NH> CSPLIT it and post it in several parts but sheesh, I'm convinced NH> that there's got to be a "simple" solution. If you post windows code here I'll ignore it. NH> The situation is that I wish to create the object in a member NH> function. ???? HN> Then I need to manipulate the data in an unrelated class NH> WITHOUT creating a new object in that unrelated class. Objects of class A (for Accountant) need to have a method that can manipulate the contents of existing objects of class B (for Books) I think you'd need to declare A::maniputate_B() as a Friend of B NH> I thought that I could succeed by passing pointers to the original NH> class, but... that'd get you part way there. -=> Bye <=- --- * Origin: I'm pink, therefore I'm SPAM. (3:640/1042) .