Click here to Skip to main content
15,892,281 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: error message Pin
Cyclone_S3-May-11 11:21
Cyclone_S3-May-11 11:21 
QuestionMFC: ownderdrawn menu, how can I change the default menu border? Pin
Erik1-May-11 19:53
Erik1-May-11 19:53 
AnswerRe: MFC: ownderdrawn menu, how can I change the default menu border? Pin
Hans Dietrich1-May-11 20:14
mentorHans Dietrich1-May-11 20:14 
QuestionPrinting out characters from a file Pin
Francis Paran1-May-11 14:14
Francis Paran1-May-11 14:14 
QuestionRe: Printing out characters from a file Pin
David Crow1-May-11 14:55
David Crow1-May-11 14:55 
AnswerRe: Printing out characters from a file Pin
Francis Paran2-May-11 9:45
Francis Paran2-May-11 9:45 
Questionhow to convert images through C++ Pin
aesthetic.crazy1-May-11 7:21
aesthetic.crazy1-May-11 7:21 
AnswerRe: how to convert images through C++ Pin
enhzflep1-May-11 7:35
enhzflep1-May-11 7:35 
GeneralRe: how to convert images through C++ Pin
Rajesh R Subramanian1-May-11 9:15
professionalRajesh R Subramanian1-May-11 9:15 
AnswerRe: how to convert images through C++ Pin
jeff61-May-11 11:59
jeff61-May-11 11:59 
AnswerRe: how to convert images through C++ Pin
«_Superman_»1-May-11 16:46
professional«_Superman_»1-May-11 16:46 
AnswerRe: how to convert images through C++ Pin
Cool_Dev1-May-11 19:15
Cool_Dev1-May-11 19:15 
AnswerRe: how to convert images through C++ Pin
Chris Losinger2-May-11 15:05
professionalChris Losinger2-May-11 15:05 
Question'x' bit OS Pin
Pranit Kothari1-May-11 2:21
Pranit Kothari1-May-11 2:21 
AnswerRe: 'x' bit OS PinPopular
«_Superman_»1-May-11 3:00
professional«_Superman_»1-May-11 3:00 
GeneralRe: 'x' bit OS Pin
Pranit Kothari1-May-11 3:14
Pranit Kothari1-May-11 3:14 
GeneralRe: 'x' bit OS Pin
Pranit Kothari10-May-11 22:40
Pranit Kothari10-May-11 22:40 
GeneralRe: 'x' bit OS Pin
«_Superman_»10-May-11 22:59
professional«_Superman_»10-May-11 22:59 
Questionproblem Pin
hmaz462930-Apr-11 23:49
hmaz462930-Apr-11 23:49 
AnswerRe: problem Pin
Rajesh R Subramanian1-May-11 0:01
professionalRajesh R Subramanian1-May-11 0:01 
AnswerRe: problem Pin
«_Superman_»1-May-11 2:16
professional«_Superman_»1-May-11 2:16 
Questionlinked list adding operation with two structure type Pin
quartaela30-Apr-11 3:42
quartaela30-Apr-11 3:42 
AnswerRe: linked list adding operation with two structure type Pin
Luc Pattyn30-Apr-11 4:22
sitebuilderLuc Pattyn30-Apr-11 4:22 
Sure it goes wrong, as this statement
while ( (*list)->current != NULL ) (*list)->current = (*list)->current->fn_next;

is bound to result in (*list)->current being zero/null, hence the following
(*list)->current->fn_next=...

will bomb.

Some ideas:

1.
if you want to add a node at the end of the list, and your data structures have a tail member, why not use it, rather than scanning the list?

2.
try not to have special cases. When done properly, one often does not need them. And when one does, try making the alternate paths as short as possible, they tend to have common things (such as return, and count++ of which you forgot one).

Smile | :)
Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.

GeneralRe: linked list adding operation with two structure type Pin
quartaela30-Apr-11 5:13
quartaela30-Apr-11 5:13 
AnswerRe: linked list adding operation with two structure type Pin
Luc Pattyn30-Apr-11 5:36
sitebuilderLuc Pattyn30-Apr-11 5:36 

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.