Click here to Skip to main content
15,910,872 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: BeginPaint issues Pin
Waldermort19-Oct-11 3:46
Waldermort19-Oct-11 3:46 
GeneralRe: BeginPaint issues Pin
Chuck O'Toole19-Oct-11 5:02
Chuck O'Toole19-Oct-11 5:02 
GeneralRe: BeginPaint issues Pin
Waldermort19-Oct-11 5:41
Waldermort19-Oct-11 5:41 
Questionselect and accept socket calls Pin
vikramlinux18-Oct-11 8:33
vikramlinux18-Oct-11 8:33 
AnswerRe: select and accept socket calls Pin
Richard Andrew x6418-Oct-11 8:39
professionalRichard Andrew x6418-Oct-11 8:39 
AnswerRe: select and accept socket calls Pin
Chuck O'Toole18-Oct-11 10:37
Chuck O'Toole18-Oct-11 10:37 
QuestionHow to use a collection Pin
jkirkerx18-Oct-11 7:45
professionaljkirkerx18-Oct-11 7:45 
AnswerRe: How to use a collection Pin
Richard MacCutchan18-Oct-11 22:44
mveRichard MacCutchan18-Oct-11 22:44 
GeneralRe: How to use a collection Pin
jkirkerx19-Oct-11 5:18
professionaljkirkerx19-Oct-11 5:18 
QuestionCompiling DOS Apps With Windows 7 Pin
softwaremonkey18-Oct-11 7:35
softwaremonkey18-Oct-11 7:35 
AnswerRe: Compiling DOS Apps With Windows 7 Pin
Albert Holguin18-Oct-11 7:44
professionalAlbert Holguin18-Oct-11 7:44 
AnswerRe: 64 bit Windows 7 does not support 16-bit applications Pin
Software_Developer18-Oct-11 7:53
Software_Developer18-Oct-11 7:53 
GeneralRe: 64 bit Windows 7 does not support 16-bit applications Pin
softwaremonkey18-Oct-11 9:53
softwaremonkey18-Oct-11 9:53 
GeneralRe: 64 bit Windows 7 does not support 16-bit applications Pin
enhzflep18-Oct-11 11:52
enhzflep18-Oct-11 11:52 
GeneralRe: 64 bit Windows 7 does not support 16-bit applications Pin
Richard MacCutchan18-Oct-11 22:43
mveRichard MacCutchan18-Oct-11 22:43 
AnswerRe: Compiling DOS Apps With Windows 7 Pin
«_Superman_»18-Oct-11 17:23
professional«_Superman_»18-Oct-11 17:23 
GeneralRe: Compiling DOS Apps With Windows 7 Pin
softwaremonkey18-Oct-11 19:45
softwaremonkey18-Oct-11 19:45 
GeneralRe: run older 16-bit Windows programs on a 64-bit platform Pin
Goto_Label_18-Oct-11 23:23
Goto_Label_18-Oct-11 23:23 
GeneralRe: run older 16-bit Windows programs on a 64-bit platform Pin
softwaremonkey19-Oct-11 7:09
softwaremonkey19-Oct-11 7:09 
Questionc++Safe to use size specifier in enum declaration ? Pin
Maximilien18-Oct-11 4:29
Maximilien18-Oct-11 4:29 
AnswerRe: c++Safe to use size specifier in enum declaration ? Pin
TheGreatAndPowerfulOz18-Oct-11 4:58
TheGreatAndPowerfulOz18-Oct-11 4:58 
GeneralRe: c++Safe to use size specifier in enum declaration ? Pin
Maximilien18-Oct-11 5:03
Maximilien18-Oct-11 5:03 
QuestionC++ Dynamic Data Binding / Reflection Pin
Mortomfod17-Oct-11 9:35
Mortomfod17-Oct-11 9:35 
AnswerRe: C++ Dynamic Data Binding / Reflection Pin
Fernando A. Gomez F.17-Oct-11 10:09
Fernando A. Gomez F.17-Oct-11 10:09 
For dynamically invoking methods, you could take an approach similar to the COM dual interfaces: take a look at
IDispatch[^].

Basically, there's a method called GetTypeInfo, which describes your current object. Then there is GetIDsOfNames, which maps a method to an ID, and finally, Invoke, which -tadaaaah- invokes que method, passing the ID as parameter.

This is how languages such as VB6 used to work with COM interfaces. Not sure, however, on whether you should use good ol' IDispatch or implement your own interfaces, suited to your needs. But I think the approach could help you: by knowing how many methods are available, and being able to invoke them through an ID or index.

Cheers!
GeneralRe: C++ Dynamic Data Binding / Reflection Pin
Mortomfod17-Oct-11 10:20
Mortomfod17-Oct-11 10:20 

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.