Click here to Skip to main content
16,010,650 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Character(like u)? Pin
Christian Graus1-Nov-02 0:36
protectorChristian Graus1-Nov-02 0:36 
GeneralRe: Character(like u)? Pin
Gary R. Wheeler2-Nov-02 3:54
Gary R. Wheeler2-Nov-02 3:54 
GeneralLinked List Problem (PROBLEM SOLVED -- THANKS TO ALL) Pin
Nick Parker31-Oct-02 13:38
protectorNick Parker31-Oct-02 13:38 
GeneralRe: Linked List Problem Pin
Tim Smith31-Oct-02 13:51
Tim Smith31-Oct-02 13:51 
GeneralRe: Linked List Problem Pin
Nick Parker31-Oct-02 14:06
protectorNick Parker31-Oct-02 14:06 
GeneralRe: Linked List Problem Pin
ColinDavies31-Oct-02 14:11
ColinDavies31-Oct-02 14:11 
GeneralRe: Linked List Problem Pin
Nick Parker31-Oct-02 14:13
protectorNick Parker31-Oct-02 14:13 
GeneralRe: Linked List Problem Pin
Alexander Wiseman31-Oct-02 15:06
Alexander Wiseman31-Oct-02 15:06 
Hello!

Change your line in red to read:
<br />
PreviousNode = NULL;<br />


Then, below the while loop, add this code:
// Insert the node after the one pointed to
// by PreviousNode and before the one pointed to
// by NodePtr.
if(PreviousNode != NULL)
{
        PreviousNode->Next = NewNode;
        NewNode->Next = NodePtr;
}
else //new node becomes the first node
{
        NewNode->Next = NodePtr;
        Head = NewNode;
}


I think this should fix your problem, because, right now, your application does not take into account the condition that the m_ssan being passed to the function is the lowest value in the list.

I didn't give this a try yet, but let me know if it works.

Sincerely,
Alexander Wiseman

Est melior esse quam videri
It is better to be than to seem
GeneralRe: Linked List Problem Pin
Nick Parker31-Oct-02 15:19
protectorNick Parker31-Oct-02 15:19 
GeneralRe: Linked List Problem (PROBLEM SOLVED -- THANKS TO ALL) Pin
KarstenK1-Nov-02 1:00
mveKarstenK1-Nov-02 1:00 
GeneralFrustrating new operator problem Pin
Sparticus31-Oct-02 12:18
Sparticus31-Oct-02 12:18 
GeneralRe: Frustrating new operator problem Pin
ian mariano31-Oct-02 12:27
ian mariano31-Oct-02 12:27 
GeneralRe: Frustrating new operator problem Pin
Tim Smith31-Oct-02 12:38
Tim Smith31-Oct-02 12:38 
Generaldialogs Pin
Lucky200231-Oct-02 10:12
Lucky200231-Oct-02 10:12 
GeneralRe: dialogs Pin
Christian Graus31-Oct-02 10:25
protectorChristian Graus31-Oct-02 10:25 
GeneralRe: dialogs Pin
Lucky200231-Oct-02 10:33
Lucky200231-Oct-02 10:33 
GeneralRe: dialogs Pin
Christian Graus31-Oct-02 10:50
protectorChristian Graus31-Oct-02 10:50 
GeneralRe: dialogs Pin
Lucky200231-Oct-02 11:03
Lucky200231-Oct-02 11:03 
GeneralRe: dialogs Pin
Christian Graus31-Oct-02 11:10
protectorChristian Graus31-Oct-02 11:10 
GeneralRe: dialogs Pin
Lucky200231-Oct-02 11:25
Lucky200231-Oct-02 11:25 
GeneralRe: dialogs Pin
Christian Graus31-Oct-02 11:33
protectorChristian Graus31-Oct-02 11:33 
GeneralRe: dialogs Pin
Lucky20021-Nov-02 8:07
Lucky20021-Nov-02 8:07 
GeneralTCP/IP Starting Point Pin
lstar31-Oct-02 7:23
lstar31-Oct-02 7:23 
GeneralRe: TCP/IP Starting Point Pin
Anders Molin31-Oct-02 7:51
professionalAnders Molin31-Oct-02 7:51 
GeneralRe: TCP/IP Starting Point Pin
valikac31-Oct-02 8:05
valikac31-Oct-02 8:05 

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.