Click here to Skip to main content
14,382,515 members

C / C++ / MFC

 
QuestionWindows 8.1 TouchScreen panning does not scroll window for MFC Scrollview or Win32 apps Pin
bob169727-Jun-15 8:10
memberbob169727-Jun-15 8:10 
AnswerRe: Windows 8.1 TouchScreen panning does not scroll window for MFC Scrollview or Win32 apps Pin
bob1697220-Jun-15 4:31
memberbob1697220-Jun-15 4:31 
Questionlinked list in C Pin
a random user7-Jun-15 5:28
membera random user7-Jun-15 5:28 
AnswerRe: linked list in C Pin
Chris Losinger9-Jun-15 5:55
professionalChris Losinger9-Jun-15 5:55 
Questionneed help with linked structs at C language Pin
a random user6-Jun-15 0:57
membera random user6-Jun-15 0:57 
AnswerRe: need help with linked structs at C language Pin
Richard MacCutchan6-Jun-15 1:29
protectorRichard MacCutchan6-Jun-15 1:29 
GeneralRe: need help with linked structs at C language Pin
a random user6-Jun-15 1:56
membera random user6-Jun-15 1:56 
GeneralRe: need help with linked structs at C language Pin
Frankie-C6-Jun-15 7:42
memberFrankie-C6-Jun-15 7:42 
Your code is almost correct, just a couple of errors in the main function.
The variable newNode have to be initialized to NULL to avoid errors and compiler complainings.
anchorNode and NewNode are already pointer to structures of type numStruct, so you have to pass them directly to AddSongs(), but you're passing their address (even if this sounds strange to me because you should have got a compiler error).
The correct code is this:
int main(void)
{
    numStruct* anchorNode = NULL;
    numStruct* newNode = NULL;    
    AddSongs(anchorNode, newNode);
 
    system("PAUSE");
}

GeneralRe: need help with linked structs at C language Pin
a random user6-Jun-15 8:03
membera random user6-Jun-15 8:03 
GeneralRe: need help with linked structs at C language Pin
Frankie-C6-Jun-15 8:12
memberFrankie-C6-Jun-15 8:12 
GeneralRe: need help with linked structs at C language Pin
a random user6-Jun-15 8:20
membera random user6-Jun-15 8:20 
GeneralRe: need help with linked structs at C language Pin
a random user6-Jun-15 8:25
membera random user6-Jun-15 8:25 
GeneralRe: need help with linked structs at C language Pin
Frankie-C7-Jun-15 6:33
memberFrankie-C7-Jun-15 6:33 
GeneralRe: need help with linked structs at C language Pin
a random user7-Jun-15 7:32
membera random user7-Jun-15 7:32 
GeneralRe: need help with linked structs at C language Pin
Frankie-C7-Jun-15 8:38
memberFrankie-C7-Jun-15 8:38 
QuestionRe: need help with linked structs at C language Pin
David Crow8-Jun-15 4:20
memberDavid Crow8-Jun-15 4:20 
AnswerRe: need help with linked structs at C language Pin
a random user21-Jun-15 10:37
membera random user21-Jun-15 10:37 
QuestionThreading Issues Pin
ForNow5-Jun-15 6:09
memberForNow5-Jun-15 6:09 
AnswerCAsyncSocket notifications Onconnect OnSend owned by main thread Pin
ForNow7-Jun-15 3:15
memberForNow7-Jun-15 3:15 
GeneralRe: Threading Issues Pin
Albert Holguin8-Jun-15 17:21
professionalAlbert Holguin8-Jun-15 17:21 
GeneralRe: Threading Issues Pin
ForNow8-Jun-15 18:21
memberForNow8-Jun-15 18:21 
Questionwhy 4 twice Pin
Member 117446405-Jun-15 5:15
memberMember 117446405-Jun-15 5:15 
AnswerRe: why 4 twice Pin
David Crow5-Jun-15 5:19
memberDavid Crow5-Jun-15 5:19 
AnswerRe: why 4 twice Pin
k50545-Jun-15 6:35
memberk50545-Jun-15 6:35 
AnswerRe: why 4 twice Pin
Frankie-C6-Jun-15 7:56
memberFrankie-C6-Jun-15 7:56 

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.