Click here to Skip to main content
15,902,842 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionDialogBox Create Fails Pin
ForNow15-May-15 5:33
ForNow15-May-15 5:33 
QuestionRe: DialogBox Create Fails Pin
David Crow15-May-15 6:01
David Crow15-May-15 6:01 
AnswerRe: DialogBox Create Fails Pin
ForNow15-May-15 6:15
ForNow15-May-15 6:15 
AnswerRe: DialogBox Create Fails Pin
Richard MacCutchan15-May-15 22:25
mveRichard MacCutchan15-May-15 22:25 
QuestionProperty Grid alignment issue with sub-group Pin
Maximilien15-May-15 4:16
Maximilien15-May-15 4:16 
QuestionAn analog switch, but more efficient Pin
Vladimi_r215-May-15 4:15
Vladimi_r215-May-15 4:15 
AnswerRe: An analog switch, but more efficient Pin
jeron115-May-15 5:06
jeron115-May-15 5:06 
QuestionCalculating average in a high priority thread Pin
Member 935023714-May-15 23:18
Member 935023714-May-15 23:18 
GeneralRe: Calculating average in a high priority thread Pin
Jochen Arndt14-May-15 23:27
professionalJochen Arndt14-May-15 23:27 
GeneralRe: Calculating average in a high priority thread Pin
Member 935023714-May-15 23:36
Member 935023714-May-15 23:36 
GeneralRe: Calculating average in a high priority thread Pin
Jochen Arndt14-May-15 23:42
professionalJochen Arndt14-May-15 23:42 
GeneralRe: Calculating average in a high priority thread Pin
Member 935023715-May-15 0:19
Member 935023715-May-15 0:19 
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 

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.