Click here to Skip to main content
16,006,355 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: LPT Listener using thread Pin
Rahul Vaishnav2-Oct-07 20:07
Rahul Vaishnav2-Oct-07 20:07 
Questiona pointer Pin
youbo26-Sep-07 21:01
youbo26-Sep-07 21:01 
AnswerRe: a pointer Pin
youbo26-Sep-07 21:31
youbo26-Sep-07 21:31 
GeneralRe: a pointer Pin
toxcct26-Sep-07 21:39
toxcct26-Sep-07 21:39 
AnswerRe: a pointer Pin
toxcct26-Sep-07 21:35
toxcct26-Sep-07 21:35 
GeneralRe: a pointer Pin
John R. Shaw26-Sep-07 21:52
John R. Shaw26-Sep-07 21:52 
GeneralRe: a pointer Pin
toxcct26-Sep-07 21:54
toxcct26-Sep-07 21:54 
GeneralRe: a pointer Pin
John R. Shaw26-Sep-07 23:12
John R. Shaw26-Sep-07 23:12 
Your wording was confusing (at first glance) and an example would have helped, especially for a beginner. “baeten” gave an example (although it is not a unidirectional list), since I posted, and that combined with what you said should help them figure it out.

If I was not so tired, I probably would have made it simpler (like ‘baeten”):

It is trying to allocate the next node in a linked list, which is equivalent to adding a new link to a chain. The allocation may fail so make sure that malloc does not return NULL.

node : A memory pointer to type ListEntry; that is the address of a memory block containing a ListEntry structure (a node).

node->next : The next link in the chain; a pointer to the next structure (node).

….

A linked list looks like this in memory node->next->next->next->NULL, where NULL is the end of the list (or chain).



Or something like that; I am not in the right frame of mind right now. You did a good job and they need to search for a tutorial and spend time playing with lists.

Good night, or day (5 A.M. here).


INTP
"Program testing can be used to show the presence of bugs, but never to show their absence."Edsger Dijkstra

AnswerRe: a pointer Pin
baerten26-Sep-07 21:37
baerten26-Sep-07 21:37 
GeneralRe: a pointer Pin
youbo26-Sep-07 21:45
youbo26-Sep-07 21:45 
GeneralRe: a pointer [modified] Pin
Russell'26-Sep-07 22:29
Russell'26-Sep-07 22:29 
GeneralRe: a pointer Pin
toxcct26-Sep-07 22:44
toxcct26-Sep-07 22:44 
GeneralRe: a pointer Pin
Russell'26-Sep-07 22:56
Russell'26-Sep-07 22:56 
QuestionUrgent - How to identify given image is too dark or light Pin
sujtha26-Sep-07 20:51
sujtha26-Sep-07 20:51 
AnswerRe: Urgent - How to identify given image is too dark or light Pin
Waldermort26-Sep-07 21:00
Waldermort26-Sep-07 21:00 
GeneralRe: Urgent - How to identify given image is too dark or light Pin
toxcct26-Sep-07 22:48
toxcct26-Sep-07 22:48 
AnswerRe: Urgent - How to identify given image is too dark or light Pin
Russell'26-Sep-07 22:37
Russell'26-Sep-07 22:37 
GeneralRe: Urgent - How to identify given image is too dark or light Pin
Nishad S27-Sep-07 1:56
Nishad S27-Sep-07 1:56 
GeneralRe: Urgent - How to identify given image is too dark or light Pin
Russell'27-Sep-07 2:14
Russell'27-Sep-07 2:14 
GeneralRe: Urgent - How to identify given image is too dark or light Pin
Nishad S27-Sep-07 3:06
Nishad S27-Sep-07 3:06 
GeneralRe: Urgent - How to identify given image is too dark or light Pin
Russell'27-Sep-07 3:38
Russell'27-Sep-07 3:38 
GeneralRe: Urgent - How to identify given image is too dark or light Pin
Sreedhar DV27-Sep-07 23:02
Sreedhar DV27-Sep-07 23:02 
GeneralRe: Urgent - How to identify given image is too dark or light Pin
Russell'5-Oct-07 6:40
Russell'5-Oct-07 6:40 
AnswerRe: Urgent - How to identify given image is too dark or light Pin
KarstenK26-Sep-07 23:53
mveKarstenK26-Sep-07 23:53 
QuestionProblem with calling web service using HTTPSendRequest and InternetReadFile on EVC 3.0. Pin
HetalAgrawal26-Sep-07 20:37
HetalAgrawal26-Sep-07 20:37 

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.