Compilation during runtime problem

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Xeevis
    New Member
    • Oct 2008
    • 1

    Compilation during runtime problem

    Hey, I have kinda complicated problem. I have console application which itself compile Scripts Library during runtime and then it uses it (allow ppl to drop in plain .cs files without need to build anything themselves).
    I'm developing Form (as Library) in separate project, which must communicate with those Scripts on runtime (read/change properties etc). However there is problem that i don't know how to access em. I have no reference to them. I have class in scripts which actually calls Application.Run (new frmModule()); on Console starting event so i need to pass reference in parameter but i dont know what to pass, Mo.

    I image it like
    (Inside Scripts)
    Application.Run (new frmModule(Handl e));

    (Inside Module.dll)
    public frmModule (Handle handle)
    {
    handle.ScriptsP roperty = 20;
    }

    If i put frmModule code into scripts then its working perfetly, but this would give users full source code which i dont want to. I hope you understand what im trying to do. :/
Working...