Click here to Skip to main content
15,436,765 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to pass pointers and process them using ellipsis ? Pin
k505419-Mar-22 5:01
mvek505419-Mar-22 5:01 
GeneralRe: How to pass pointers and process them using ellipsis ? Pin
Member 1496877119-Mar-22 8:44
MemberMember 1496877119-Mar-22 8:44 
GeneralRe: How to pass pointers and process them using ellipsis ? Pin
k505419-Mar-22 12:00
mvek505419-Mar-22 12:00 
GeneralRe: How to pass pointers and process them using ellipsis ? Pin
Richard MacCutchan19-Mar-22 6:11
mveRichard MacCutchan19-Mar-22 6:11 
Questionworking with pointers Pin
Calin Cali17-Mar-22 21:48
MemberCalin Cali17-Mar-22 21:48 
AnswerRe: working with pointers Pin
Victor Nijegorodov17-Mar-22 23:16
MemberVictor Nijegorodov17-Mar-22 23:16 
GeneralRe: working with pointers Pin
Calin Cali18-Mar-22 0:12
MemberCalin Cali18-Mar-22 0:12 
GeneralRe: working with pointers Pin
Victor Nijegorodov18-Mar-22 1:39
MemberVictor Nijegorodov18-Mar-22 1:39 
One thing it is not good using malloc in C++ apps is because the class ctor is not called.
I see you are trying then to "solve" this problem using this code:
<pre lang="C++">   SomeNode * Tail;
    Tail = (SomeNode*)malloc(sizeof(SomeNode));
    Tail->next = NULL;
    Tail->data = 100;
But you wiil need to do it in every place you will create the class instance and, moreover, after some updates in the class members you will have to look for all the occurrences of such a malloc and update the class member initializations accordingly!
GeneralRe: working with pointers Pin
Calin Cali18-Mar-22 10:20
MemberCalin Cali18-Mar-22 10:20 
Generalgoing a bit further: working with pointers Pin
Calin Cali20-Mar-22 7:47
MemberCalin Cali20-Mar-22 7:47 
AnswerRe: working with pointers Pin
Mircea Neacsu18-Mar-22 10:19
mvaMircea Neacsu18-Mar-22 10:19 
QuestionRe: working with pointers Pin
David Crow21-Mar-22 3:16
MemberDavid Crow21-Mar-22 3:16 
AnswerRe: working with pointers Pin
Calin Cali21-Mar-22 5:15
MemberCalin Cali21-Mar-22 5:15 
QuestionCode to Figure out x,y cords for CDC::Pie inside an CDC::Ellipse given % Pin
ForNow13-Mar-22 9:37
MemberForNow13-Mar-22 9:37 
AnswerRe: Code to Figure out x,y cords for CDC::Pie inside an CDC::Ellipse given % Pin
Mircea Neacsu14-Mar-22 16:41
mvaMircea Neacsu14-Mar-22 16:41 
GeneralRe: Code to Figure out x,y cords for CDC::Pie inside an CDC::Ellipse given % Pin
ForNow15-Mar-22 5:01
MemberForNow15-Mar-22 5:01 
QuestionIPv6 address compression code using vc++ Pin
Member 1252773510-Mar-22 17:12
MemberMember 1252773510-Mar-22 17:12 
AnswerRe: IPv6 address compression code using vc++ Pin
Victor Nijegorodov10-Mar-22 21:06
MemberVictor Nijegorodov10-Mar-22 21:06 
QuestionQuestions about EM_SETWORDBREAKPROC message and EDITWORDBREAKPROCA function Pin
ForNow10-Mar-22 6:02
MemberForNow10-Mar-22 6:02 
AnswerRe: Questions about EM_SETWORDBREAKPROC message and EDITWORDBREAKPROCA function Pin
RedDk10-Mar-22 8:22
MemberRedDk10-Mar-22 8:22 
GeneralRe: Questions about EM_SETWORDBREAKPROC message and EDITWORDBREAKPROCA function Pin
ForNow10-Mar-22 9:35
MemberForNow10-Mar-22 9:35 
GeneralRe: Questions about EM_SETWORDBREAKPROC message and EDITWORDBREAKPROCA function Pin
RedDk10-Mar-22 9:40
MemberRedDk10-Mar-22 9:40 
AnswerRe: Questions about EM_SETWORDBREAKPROC message and EDITWORDBREAKPROCA function Pin
Richard MacCutchan10-Mar-22 22:19
mveRichard MacCutchan10-Mar-22 22:19 
GeneralRe: Questions about EM_SETWORDBREAKPROC message and EDITWORDBREAKPROCA function Pin
ForNow11-Mar-22 1:41
MemberForNow11-Mar-22 1:41 
GeneralRe: Questions about EM_SETWORDBREAKPROC message and EDITWORDBREAKPROCA function Pin
Richard MacCutchan11-Mar-22 1:51
mveRichard MacCutchan11-Mar-22 1:51 

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.