Hi everyone,
Looking for a pointer in the right direction.
What I want is for my app to be able to load code dynamically and execute it. So far I have managed to load in the code and compile it using an instance of ICodeCompiler and use its CompileAssemblyFromSource method and then InvokeMember to call methods in my dynamically compiled code.
What I am struggling to find is a way for my dynamically compiled code to call methods in my original app.
I have this currently working using vbscripts by creating an instance of
MSScriptControl.ScriptControlClass and using the AddObject method and passing an instance of a class that has the methods I want to call.
I am looking for a pointer in the right direction to the equivalent for ICodeCompiler way for VB code
Thanks
Dwayne
Looking for a pointer in the right direction.
What I want is for my app to be able to load code dynamically and execute it. So far I have managed to load in the code and compile it using an instance of ICodeCompiler and use its CompileAssemblyFromSource method and then InvokeMember to call methods in my dynamically compiled code.
What I am struggling to find is a way for my dynamically compiled code to call methods in my original app.
I have this currently working using vbscripts by creating an instance of
MSScriptControl.ScriptControlClass and using the AddObject method and passing an instance of a class that has the methods I want to call.
I am looking for a pointer in the right direction to the equivalent for ICodeCompiler way for VB code
Thanks
Dwayne