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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top