Solved

CList question

Posted on 1998-08-01
2
240 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 100 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
if loop in java 3 128
lucky13 challenge 11 120
Sed question 2 68
Problem to event 3 76
Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
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.
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

911 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now