Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

CList question

Posted on 1998-08-01
2
Medium Priority
?
261 Views
Last Modified: 2013-11-19
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.
--MJ
0
Comment
Question by:maj030598
2 Comments
 
LVL 8

Accepted Solution

by:
trestan earned 300 total points
ID: 1320076
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.
0
 

Author Comment

by:maj030598
ID: 1320077
to make the problem more exact, I have the following:
CList (CRecord,CRecord&> m_Data

Then in the code I call the function

Find(&m_Data,int,double)
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,

0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…

916 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question