• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 264
  • Last Modified:

CList question

I have in my code:
CList <CRecord,CRecord&> m_Node;
CList <CRecord,CRecord&> m_S2;
After modifing m_Node, I would like m_S2 to point (same address as) m_Node.
I have tried m_Node = &m_S2;
m_S2 = *m_Node;
nothing worked, I am lost, Please Help.
1 Solution
Declare the m_S2 as a pointer. Then the address of m_Node can be transfered to it.
CList <CRecord,CRecord&> *m_S2;
m_S2 = & m_Node;
Nice day.
maj030598Author Commented:
to make the problem more exact, I have the following:
CList (CRecord,CRecord&> m_Data

Then in the code I call the function

where find is defined as follows
Find (CList <CRecord,CRecord&> *m_Node,int,double)
when I set m_Node = m_S2; nothing happends to m_Data!!!
why is that?
Please make my day,

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Train for your Pen Testing Engineer Certification

Enroll today in this bundle of courses to gain experience in the logistics of pen testing, Linux fundamentals, vulnerability assessments, detecting live systems, and more! This series, valued at $3,000, is free for Premium members, Team Accounts, and Qualified Experts.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now