dynamic code callback using Reflection

Dwayne

New member
Joined
Feb 16, 2006
Messages
1
Location
New York
Programming Experience
3-5
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

 
Back
Top