CompileAssemblyFromSource() throws a "not implemented" exception

G

Guest

Using the June CTP of VS2005

I have code that loads a script, and based on the extension, creates the
appropriate CodeDom provider and calls the CompileAssemblyFromSource()
function.

This works fine with C#, J#, JScript, and VB, but if I pass it a ".h" file,
so that the CppCodeProvider is the provider created, then when I call
CompileAssemblyFromSource() I get a System.NotImplementedException at
Microsoft.VisucalC.CppCodeProvider.CreateCompiler().

Is there something special for C++ that I need to do that I don't need for
the other languages, or is this just broken in the current beta?

Brian C. Barnes
 
?

=?ISO-8859-2?Q?=A3ukasz?=

Brian said:
Using the June CTP of VS2005

I have code that loads a script, and based on the extension, creates the
appropriate CodeDom provider and calls the CompileAssemblyFromSource()
function.

This works fine with C#, J#, JScript, and VB, but if I pass it a ".h" file,
so that the CppCodeProvider is the provider created, then when I call
CompileAssemblyFromSource() I get a System.NotImplementedException at
Microsoft.VisucalC.CppCodeProvider.CreateCompiler().

Is there something special for C++ that I need to do that I don't need for
the other languages, or is this just broken in the current beta?

Brian C. Barnes

Maybe you should use ".cpp" instead of ".h" file?
£ukasz ¦wi±tkowski
 
G

Guest

Thanks for the reply, but it made no difference. Interestingly, the provider
itself tells you what extension to use, and CppCodeProvider says that it
wants ".h" and "h" extensions - it doesn't even include ".cpp" as one it
understands.
 

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

Top