471,337 Members | 1,139 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,337 software developers and data experts.

Dynamic code compiling and events

Hi all,

Okay, here's something I'd like to do, but I'm not certain its possible.
Thus far in playing with it, I haven't been able to get it going. I'm able
to load and compile a .cs file using the CodeCompiler class. I know that
portion works correctly because I can use the Invoke method of the MethodInfo
object it returns and it triggers my dynamically loaded function. My
problem shows up in +=ing my function onto an event. No matter what I've
tried to give it, I get compiler errors "variable not method", "method name
expected", etc. Is there a way to get this function bound onto my event?
Thanks much!
Jul 21 '05 #1
0 952

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by instruo | last post: by
1 post views Thread by hybrid | last post: by
13 posts views Thread by Chris Thunell | last post: by
3 posts views Thread by Leo J. Hart IV | last post: by
171 posts views Thread by tshad | last post: by
2 posts views Thread by Ghada Al-Mashaqbeh via DotNetMonster.com | last post: by
15 posts views Thread by EDBrian | last post: by
8 posts views Thread by Marc | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.