Click here to Skip to main content
15,886,919 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Embedded and dynamic memory allocation Pin
honey the codewitch16-Nov-23 0:41
mvahoney the codewitch16-Nov-23 0:41 
GeneralRe: Embedded and dynamic memory allocation Pin
CPallini16-Nov-23 0:55
mveCPallini16-Nov-23 0:55 
AnswerRe: Embedded and dynamic memory allocation Pin
leon de boer8-Dec-23 20:59
leon de boer8-Dec-23 20:59 
QuestionC++ reflection Pin
jschell15-Nov-23 3:26
jschell15-Nov-23 3:26 
AnswerRe: C++ reflection Pin
Mircea Neacsu15-Nov-23 3:41
Mircea Neacsu15-Nov-23 3:41 
GeneralRe: C++ reflection Pin
jschell16-Nov-23 4:32
jschell16-Nov-23 4:32 
AnswerRe: C++ reflection Pin
honey the codewitch15-Nov-23 4:35
mvahoney the codewitch15-Nov-23 4:35 
GeneralRe: C++ reflection Pin
jschell16-Nov-23 4:39
jschell16-Nov-23 4:39 
honey the codewitch wrote:
RTTI


Yeah that is the one that I was remembering.

So then that is not sufficient perhaps? Limited in some way?

In Java/C# one can get to things like class name, method names (public and private), method parameters (types), access types, class attributes. All of those can be listed and manipulated.

So for example if a class attribute is private and modifying that is going to help with better unit testing one can write reflection code to modify it. That is the most common use I have used for accessing private attributes. I don't use it that much and seems like bit of a wash versus adding a setter/getter.
GeneralRe: C++ reflection Pin
honey the codewitch16-Nov-23 5:29
mvahoney the codewitch16-Nov-23 5:29 
GeneralRe: C++ reflection Pin
jschell17-Nov-23 5:32
jschell17-Nov-23 5:32 
GeneralRe: C++ reflection Pin
honey the codewitch17-Nov-23 5:34
mvahoney the codewitch17-Nov-23 5:34 
GeneralRe: C++ reflection Pin
jschell20-Nov-23 7:17
jschell20-Nov-23 7:17 
QuestionHow to "match" multiple occurrences of item in text ? ( Regular expression ) Pin
Salvatore Terress12-Nov-23 6:40
Salvatore Terress12-Nov-23 6:40 
AnswerRe: How to "match" multiple occurrences of item in text ? ( Regular expression ) Pin
Richard MacCutchan12-Nov-23 21:52
mveRichard MacCutchan12-Nov-23 21:52 
QuestionRe: How to "match" multiple occurrences of item in text ? ( Regular expression ) Pin
CPallini12-Nov-23 23:05
mveCPallini12-Nov-23 23:05 
AnswerRe: How to "match" multiple occurrences of item in text ? ( Regular expression ) Pin
jschell13-Nov-23 6:33
jschell13-Nov-23 6:33 
GeneralRe: How to "match" multiple occurrences of item in text ? ( Regular expression ) Pin
Salvatore Terress14-Nov-23 6:41
Salvatore Terress14-Nov-23 6:41 
AnswerRe: How to "match" multiple occurrences of item in text ? ( Regular expression ) Pin
jschell14-Nov-23 7:46
jschell14-Nov-23 7:46 
GeneralRe: How to "match" multiple occurrences of item in text ? ( Regular expression ) Pin
Salvatore Terress14-Nov-23 11:52
Salvatore Terress14-Nov-23 11:52 
GeneralRe: How to "match" multiple occurrences of item in text ? ( Regular expression ) Pin
jschell15-Nov-23 3:22
jschell15-Nov-23 3:22 
GeneralRe: How to "match" multiple occurrences of item in text ? ( Regular expression ) Pin
Salvatore Terress15-Nov-23 7:05
Salvatore Terress15-Nov-23 7:05 
QuestionHow do you pass an int by reference to a function? Pin
Calin Negru11-Nov-23 3:57
Calin Negru11-Nov-23 3:57 
AnswerRe: How do you pass an int by reference to a function? Pin
Greg Utas11-Nov-23 4:19
professionalGreg Utas11-Nov-23 4:19 
GeneralRe: How do you pass an int by reference to a function? Pin
Richard MacCutchan11-Nov-23 4:49
mveRichard MacCutchan11-Nov-23 4:49 
GeneralRe: How do you pass an int by reference to a function? Pin
Greg Utas11-Nov-23 5:40
professionalGreg Utas11-Nov-23 5:40 

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.