Click here to Skip to main content
15,888,527 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Calculating average in a high priority thread Pin
Jochen Arndt15-May-15 0:53
professionalJochen Arndt15-May-15 0:53 
QuestionException in code C Pin
Member 1169244814-May-15 21:33
Member 1169244814-May-15 21:33 
SuggestionRe: Exception in code C Pin
Richard MacCutchan14-May-15 22:35
mveRichard MacCutchan14-May-15 22:35 
GeneralRe: Exception in code C Pin
Member 1169244814-May-15 22:59
Member 1169244814-May-15 22:59 
GeneralRe: Exception in code C Pin
Richard MacCutchan15-May-15 2:53
mveRichard MacCutchan15-May-15 2:53 
SuggestionRe: Exception in code C Pin
David Crow15-May-15 2:13
David Crow15-May-15 2:13 
GeneralRe: Exception in code C Pin
Philippe Mori16-May-15 2:45
Philippe Mori16-May-15 2:45 
AnswerRe: Exception in code C Pin
Philippe Mori16-May-15 2:41
Philippe Mori16-May-15 2:41 
C++
element = malloc(sizeof(Liste));
should be
C++
element = malloc(sizeof(Cellule));

You are allocating 4 bytes (on 32 bit platform) instead of approximatively 60 bytes.

The following line is also incorrect:
C++
en_cours=en_cours->succ;
Since you are Inside a function, the pointer is passed by value and a change inside the function has no effect outside of it. You need to have a pointer to a pointer to be able to update the pointer at the caller location.

You don't initialized new list to NULL so first insertion might fails because the pointer is garbage.
Philippe Mori

QuestionCopy Text from dialog box Pin
Thakur JAI SINGH13-May-15 23:31
Thakur JAI SINGH13-May-15 23:31 
AnswerRe: Copy Text from dialog box Pin
Richard MacCutchan14-May-15 1:22
mveRichard MacCutchan14-May-15 1:22 
QuestionRe: Copy Text from dialog box Pin
David Crow14-May-15 4:04
David Crow14-May-15 4:04 
AnswerRe: Copy Text from dialog box Pin
Thakur JAI SINGH18-May-15 0:48
Thakur JAI SINGH18-May-15 0:48 
QuestionRe: Copy Text from dialog box Pin
David Crow18-May-15 2:21
David Crow18-May-15 2:21 
QuestionMFC release and Debug build Pin
bhushan050812-May-15 0:42
bhushan050812-May-15 0:42 
GeneralRe: MFC release and Debug build Pin
Richard MacCutchan12-May-15 4:57
mveRichard MacCutchan12-May-15 4:57 
AnswerRe: MFC release and Debug build Pin
Maximilien12-May-15 7:52
Maximilien12-May-15 7:52 
GeneralRe: MFC release and Debug build Pin
Albert Holguin12-May-15 10:26
professionalAlbert Holguin12-May-15 10:26 
GeneralRe: MFC release and Debug build Pin
Maximilien13-May-15 3:13
Maximilien13-May-15 3:13 
AnswerRe: MFC release and Debug build Pin
Albert Holguin12-May-15 10:30
professionalAlbert Holguin12-May-15 10:30 
QuestionC++ code to manage 3 keypads connected to one PC? Pin
Member 1167707911-May-15 10:50
Member 1167707911-May-15 10:50 
AnswerRe: C++ code to manage 3 keypads connected to one PC? Pin
Sascha Lefèvre11-May-15 11:45
professionalSascha Lefèvre11-May-15 11:45 
GeneralRe: C++ code to manage 3 keypads connected to one PC? Pin
Member 1167707912-May-15 2:51
Member 1167707912-May-15 2:51 
GeneralRe: C++ code to manage 3 keypads connected to one PC? Pin
Sascha Lefèvre12-May-15 3:34
professionalSascha Lefèvre12-May-15 3:34 
GeneralRe: C++ code to manage 3 keypads connected to one PC? Pin
Member 1167707912-May-15 4:01
Member 1167707912-May-15 4:01 
GeneralRe: C++ code to manage 3 keypads connected to one PC? Pin
Sascha Lefèvre12-May-15 7:27
professionalSascha Lefèvre12-May-15 7:27 

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.