Click here to Skip to main content
15,897,315 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
AnswerRe: DataGridView Pin
Sivakumar R29-Jun-07 5:22
Sivakumar R29-Jun-07 5:22 
GeneralRe: DataGridView Pin
mikobi3-Jul-07 5:04
mikobi3-Jul-07 5:04 
QuestionPostMessage to a remote thread ?! Pin
bend0r!28-Jun-07 6:24
bend0r!28-Jun-07 6:24 
AnswerRe: PostMessage to a remote thread ?! Pin
Perspx2-Jul-07 11:27
Perspx2-Jul-07 11:27 
QuestionWindows Search Utility Pin
SD102128-Jun-07 5:57
SD102128-Jun-07 5:57 
AnswerRe: Windows Search Utility Pin
SD102128-Jun-07 5:58
SD102128-Jun-07 5:58 
QuestionNeed Help: ActiveX Control Method is taking a Variant as Parameter (.Net 1.1) Pin
Oliver Sch.28-Jun-07 0:55
Oliver Sch.28-Jun-07 0:55 
QuestionParsing and Invoking functions problem Pin
Arris7427-Jun-07 11:24
Arris7427-Jun-07 11:24 
Hello,

The following code snippet invokes a function by its name.
It works fine but the function's name and its arguments must be used separately.
What I would like to do is to type in my function from an edit control as it is defined
E.g. MyFunc(arg1, arg2).
But before invoking it, I assume that I must parse it to get its name and arguments separately.

So I am wondering if Dot.Net framework provides either a parsing method that will easily split the function name and the arguments or better an invoke method where I can just pass my function in one shot with all its arguments?

Could you please help me to find a straightforward solution?

 <br />
Object* CInvoker::InvokeMethod(String* method, Object* args[])<br />
{<br />
<br />
Module* module[] = Assembly::GetExecutingAssembly()->GetModules(false);<br />
<br />
CExternal* objexternal = new CExternal();//The instance that encapsulates the function to invoke<br />
Type* typExternal = module[0]->GetType("CExternal");<br />
MethodInfo* methodinf = typExternal->GetMethod(method);<br />
Object* ret = methodinf->Invoke(objexternal, args);<br />
return ret;<br />
<br />
}<br />

Questionvery simple question : Pin
Ylno27-Jun-07 11:10
Ylno27-Jun-07 11:10 
AnswerRe: very simple question : Pin
Christian Graus27-Jun-07 11:27
protectorChristian Graus27-Jun-07 11:27 
AnswerRe: very simple question : Pin
Mark Salsbery27-Jun-07 11:41
Mark Salsbery27-Jun-07 11:41 
GeneralRe: very simple question : Pin
Christian Graus27-Jun-07 11:56
protectorChristian Graus27-Jun-07 11:56 
GeneralRe: very simple question : Pin
Mark Salsbery27-Jun-07 12:13
Mark Salsbery27-Jun-07 12:13 
QuestionSTL Pin
tom groezer27-Jun-07 7:48
tom groezer27-Jun-07 7:48 
AnswerRe: STL Pin
Christian Graus27-Jun-07 11:32
protectorChristian Graus27-Jun-07 11:32 
QuestionTextbox Difficult Pin
mikobi27-Jun-07 3:54
mikobi27-Jun-07 3:54 
AnswerRe: Textbox Difficult Pin
Christian Graus27-Jun-07 12:20
protectorChristian Graus27-Jun-07 12:20 
GeneralRe: Textbox Difficult Pin
mikobi27-Jun-07 21:04
mikobi27-Jun-07 21:04 
GeneralRe: Textbox Difficult Pin
mikobi28-Jun-07 22:02
mikobi28-Jun-07 22:02 
GeneralRe: Textbox Difficult Pin
mikobi3-Jul-07 6:42
mikobi3-Jul-07 6:42 
Questiondeterministic cleanup in C++/CLI Pin
rockonedge26-Jun-07 21:48
rockonedge26-Jun-07 21:48 
AnswerRe: deterministic cleanup in C++/CLI Pin
Geo Pa27-Jun-07 3:52
Geo Pa27-Jun-07 3:52 
Questionbyte C# to C++ Pin
C#Coudou26-Jun-07 19:22
C#Coudou26-Jun-07 19:22 
AnswerRe: byte C# to C++ Pin
C#Coudou26-Jun-07 19:39
C#Coudou26-Jun-07 19:39 
QuestionNetwork speed detection Pin
C#Coudou26-Jun-07 18:36
C#Coudou26-Jun-07 18:36 

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.