compiling C code at runtime

  • Thread starter Thread starter Riya
  • Start date Start date
R

Riya

I am generating a C code in my application and I need to compile,
execute, display errors at runtime. How can I do it in VIsual
Studio.Net? I found some clue in CodeCompiler Class but did not get the
solution for C code.
 
Billy Hollis talked about doing something like this, although he used VB
code. Go to www.dotnetrocks.com and look for show #91. During the show he
talks about storing VB code in a database table and compliling on the fly an
in memory assembly that he then used as an "add-in" for his application. I'm
pretty sure he used CodeDOM to accomplish this.

Good Luck,

Robert
 
Back
Top