Click here to Skip to main content
15,887,214 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
GeneralRe: C++ Dynamic Data Binding / Reflection Pin
Fernando A. Gomez F.17-Oct-11 10:53
Fernando A. Gomez F.17-Oct-11 10:53 
AnswerRe: C++ Dynamic Data Binding / Reflection Pin
TheGreatAndPowerfulOz17-Oct-11 10:25
TheGreatAndPowerfulOz17-Oct-11 10:25 
AnswerRe: C++ Dynamic Data Binding / Reflection Pin
TheGreatAndPowerfulOz17-Oct-11 10:47
TheGreatAndPowerfulOz17-Oct-11 10:47 
QuestionGetting a list of SQL Servers Available Pin
jkirkerx17-Oct-11 8:30
professionaljkirkerx17-Oct-11 8:30 
QuestionRe: Getting a list of SQL Servers Available Pin
David Crow17-Oct-11 9:52
David Crow17-Oct-11 9:52 
AnswerRe: Getting a list of SQL Servers Available Pin
jkirkerx17-Oct-11 11:05
professionaljkirkerx17-Oct-11 11:05 
AnswerRe: Getting a list of SQL Servers Available Pin
jkirkerx17-Oct-11 11:42
professionaljkirkerx17-Oct-11 11:42 
GeneralRe: Getting a list of SQL Servers Available Pin
jkirkerx17-Oct-11 12:35
professionaljkirkerx17-Oct-11 12:35 
QuestionSuggest a fast way to do? Pin
john563216-Oct-11 23:06
john563216-Oct-11 23:06 
AnswerRe: Suggest a fast way to do? Pin
Richard MacCutchan16-Oct-11 23:11
mveRichard MacCutchan16-Oct-11 23:11 
GeneralRe: Suggest a fast way to do? Pin
john563216-Oct-11 23:19
john563216-Oct-11 23:19 
GeneralRe: Suggest a fast way to do? Pin
Richard MacCutchan16-Oct-11 23:56
mveRichard MacCutchan16-Oct-11 23:56 
GeneralRe: Suggest a fast way to do? Pin
john563217-Oct-11 0:01
john563217-Oct-11 0:01 
GeneralRe: Suggest a fast way to do? Pin
Richard MacCutchan17-Oct-11 0:06
mveRichard MacCutchan17-Oct-11 0:06 
GeneralRe: Suggest a fast way to do? Pin
enhzflep17-Oct-11 13:35
enhzflep17-Oct-11 13:35 
AnswerRe: Suggest a fast way to do? Pin
Erudite_Eric17-Oct-11 0:04
Erudite_Eric17-Oct-11 0:04 

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.