Click here to Skip to main content
15,920,602 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Link list Using STL Pin
toxcct28-Oct-05 4:08
toxcct28-Oct-05 4:08 
GeneralRe: Link list Using STL Pin
itkid28-Oct-05 4:23
itkid28-Oct-05 4:23 
GeneralRe: Link list Using STL Pin
toxcct28-Oct-05 4:31
toxcct28-Oct-05 4:31 
GeneralRe: Link list Using STL Pin
itkid28-Oct-05 6:02
itkid28-Oct-05 6:02 
AnswerRe: Link list Using STL Pin
Eytukan28-Oct-05 4:41
Eytukan28-Oct-05 4:41 
GeneralRe: Link list Using STL Pin
itkid28-Oct-05 5:34
itkid28-Oct-05 5:34 
GeneralRe: Link list Using STL Pin
Eytukan28-Oct-05 5:57
Eytukan28-Oct-05 5:57 
AnswerRe: Link list Using STL Pin
Maximilien28-Oct-05 4:45
Maximilien28-Oct-05 4:45 
you cannot access members of a std::list like you would do in a normal C/C++ linked list.

you need to create an iterator to access each item in the list :

( untested and unverified code ... )

<br />
// assume this is what is really in your post : <br />
typedef std::list < CNode* > SEC_MSG_DATA;<br />
...<br />
<br />
// this will give you access to the first element in the list.<br />
SEC_MSG_DATA::iterator it = node.begin();<br />
CNode* pNode = *it;<br />


to traverse the list, you can do something like :
<br />
SEC_MSG_DATA::iterator it = node.begin();<br />
while ( it != node.end() )<br />
{<br />
  CNode* pNode = *it;<br />
<br />
  ++it;<br />
}<br />



Maximilien Lincourt
Your Head A Splode - Strong Bad
GeneralRe: Link list Using STL Pin
itkid28-Oct-05 6:46
itkid28-Oct-05 6:46 
QuestionAssertion in ctlreg.cpp (OLE Registration) Pin
SatyaDY28-Oct-05 3:50
SatyaDY28-Oct-05 3:50 
QuestionInternet Explorer Toolbar Pin
Mircea Grelus28-Oct-05 3:03
Mircea Grelus28-Oct-05 3:03 
QuestionForcing an allocated Heap to physical memory &amp; not to be swaped to the page file. Pin
ja100128-Oct-05 2:48
ja100128-Oct-05 2:48 
AnswerRe: Forcing an allocated Heap to physical memory &amp; not to be swaped to the page file. Pin
David Crow28-Oct-05 3:04
David Crow28-Oct-05 3:04 
AnswerRe: Forcing an allocated Heap to physical memory &amp; not to be swaped to the page file. Pin
Cedric Moonen28-Oct-05 3:13
Cedric Moonen28-Oct-05 3:13 
AnswerRe: Forcing an allocated Heap to physical memory &amp; not to be swaped to the page file. Pin
Michael Dunn28-Oct-05 3:24
sitebuilderMichael Dunn28-Oct-05 3:24 
AnswerRe: Forcing an allocated Heap to physical memory &amp; not to be swaped to the page file. Pin
Blake Miller28-Oct-05 7:32
Blake Miller28-Oct-05 7:32 
QuestionRe: Forcing an allocated Heap to physical memory &amp; not to be swaped to the page file. Pin
ja100129-Oct-05 4:49
ja100129-Oct-05 4:49 
AnswerRe: Forcing an allocated Heap to physical memory &amp; not to be swaped to the page file. Pin
Blake Miller31-Oct-05 3:21
Blake Miller31-Oct-05 3:21 
QuestionHow to debug an api call that generates an unknown error Pin
Dan Neely28-Oct-05 2:09
Dan Neely28-Oct-05 2:09 
Questionneed help in TrimStart() Pin
sheshidar28-Oct-05 1:58
sheshidar28-Oct-05 1:58 
AnswerRe: need help in TrimStart() Pin
willy_total28-Oct-05 2:23
willy_total28-Oct-05 2:23 
GeneralRe: need help in TrimStart() Pin
sheshidar28-Oct-05 3:22
sheshidar28-Oct-05 3:22 
GeneralRe: need help in TrimStart() Pin
willy_total31-Oct-05 2:58
willy_total31-Oct-05 2:58 
AnswerRe: need help in TrimStart() Pin
shivditya28-Oct-05 2:52
shivditya28-Oct-05 2:52 
QuestionMessage Pumps in MFC Pin
Eytukan28-Oct-05 1:02
Eytukan28-Oct-05 1:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.