Click here to Skip to main content
15,899,825 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to use UTF8 characters in C++ Pin
JohnCodding27-Jul-22 19:40
JohnCodding27-Jul-22 19:40 
AnswerRe: How to use UTF8 characters in C++ Pin
Richard MacCutchan27-Jul-22 4:40
mveRichard MacCutchan27-Jul-22 4:40 
QuestionI Moved this question to the proper forum "Managed C++/CLI" - Sorry for posting in the wrong place :¬) Pin
madusmacus27-Jul-22 2:33
madusmacus27-Jul-22 2:33 
AnswerRe: I hope there is a Managed C++/CLR person left to help me with Parallel::For Pin
Victor Nijegorodov27-Jul-22 4:02
Victor Nijegorodov27-Jul-22 4:02 
GeneralRe: I hope there is a Managed C++/CLR person left to help me with Parallel::For Pin
madusmacus27-Jul-22 4:24
madusmacus27-Jul-22 4:24 
QuestionUpgrade my skills... Pin
Kornfeld Eliyahu Peter21-Jul-22 0:45
professionalKornfeld Eliyahu Peter21-Jul-22 0:45 
AnswerRe: Upgrade my skills... Pin
Richard MacCutchan21-Jul-22 1:00
mveRichard MacCutchan21-Jul-22 1:00 
PraiseRe: Upgrade my skills... Pin
Kornfeld Eliyahu Peter21-Jul-22 1:12
professionalKornfeld Eliyahu Peter21-Jul-22 1:12 
GeneralRe: Upgrade my skills... Pin
Richard MacCutchan21-Jul-22 1:21
mveRichard MacCutchan21-Jul-22 1:21 
GeneralRe: Upgrade my skills... Pin
charlieg7-May-23 5:18
charlieg7-May-23 5:18 
GeneralRe: Upgrade my skills... Pin
Richard MacCutchan7-May-23 7:40
mveRichard MacCutchan7-May-23 7:40 
AnswerRe: Upgrade my skills... Pin
Graham Breach21-Jul-22 6:42
Graham Breach21-Jul-22 6:42 
PraiseRe: Upgrade my skills... Pin
Kornfeld Eliyahu Peter21-Jul-22 7:07
professionalKornfeld Eliyahu Peter21-Jul-22 7:07 
Questionpointers to functions Pin
Calin Negru16-Jul-22 0:28
Calin Negru16-Jul-22 0:28 
AnswerRe: pointers to functions Pin
Mircea Neacsu16-Jul-22 0:52
Mircea Neacsu16-Jul-22 0:52 
AnswerRe: pointers to functions Pin
Richard MacCutchan16-Jul-22 1:09
mveRichard MacCutchan16-Jul-22 1:09 
General[edited]Re: pointers to functions Pin
Calin Negru16-Jul-22 1:45
Calin Negru16-Jul-22 1:45 
GeneralRe: [edited]Re: pointers to functions Pin
Mircea Neacsu16-Jul-22 4:26
Mircea Neacsu16-Jul-22 4:26 
GeneralRe: [edited]Re: pointers to functions Pin
Calin Negru16-Jul-22 4:40
Calin Negru16-Jul-22 4:40 
GeneralRe: [edited]Re: pointers to functions Pin
Richard MacCutchan16-Jul-22 4:56
mveRichard MacCutchan16-Jul-22 4:56 
GeneralRe: [edited]Re: pointers to functions Pin
Calin Negru16-Jul-22 5:50
Calin Negru16-Jul-22 5:50 
GeneralRe: [edited]Re: pointers to functions Pin
Richard MacCutchan16-Jul-22 6:01
mveRichard MacCutchan16-Jul-22 6:01 
GeneralRe: [edited]Re: pointers to functions Pin
Calin Negru16-Jul-22 6:57
Calin Negru16-Jul-22 6:57 
GeneralRe: [edited]Re: pointers to functions Pin
Richard MacCutchan16-Jul-22 20:58
mveRichard MacCutchan16-Jul-22 20:58 
AnswerRe: pointers to functions Pin
Greg Utas16-Jul-22 7:36
professionalGreg Utas16-Jul-22 7:36 
You're creating a pointer to a free function (one defined outside a class) and then storing it, and invoking it, from within an object. But it's also possible to create a pointer to class member data or a member function. See here[^]. You may need to read several articles about this to gain a good understanding, because I can't point to one that is really good on its own. Search on "C++ pointer to member" and read articles that discuss the type Class::* (a pointer to a class member) and operators .* and ->*. These make the following possible:

C++
int Class::* pm = &Class::m;         // pointer to member data "int m"
int (Class::* pf)(int) = &Class::f;  // pointer to member function "int f(int)"
Class c, *k;
c.*pm = 1;        // c.m = 1;
n = c.*pf(0);     // n = c.f(0);
k->.pm = 2;       // k->m = 2;
n = (k->*pf)(0);  // n = k->f(0);  note that ->* requires parentheses

Robust Services Core | Software Techniques for Lemmings | Articles
The fox knows many things, but the hedgehog knows one big thing.

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.