473,405 Members | 2,210 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

CompileAssemblyFromSource() throws a "not implemented" exception

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
Nov 17 '05 #1
2 2156
Brian C. Barnes wrote:
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
Nov 17 '05 #2
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.

Maybe you should use ".cpp" instead of ".h" file?
Łukasz Świątkowski

Nov 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

20
by: Karl Smith | last post by:
I heard a rumour that Opera succeeded where none have before, and implemented the tables described in HTML4 and CSS2. So I thought I'd try it out with the well known Periodic Table. ...
13
by: gary | last post by:
Hi, We all know the below codes are dangerous: { int *p = new int; delete p; delete p; } And we also know the compilers do not delete p if p==NULL. So why compilers do not "p = NULL"...
5
by: n_o_s_p_a__m | last post by:
Can't compile. Does this mean that all functions that throw exceptions must be of return type void? examples: // won't compile: "not all code paths return a value" public override int Run() {...
12
by: Jose Fernandez | last post by:
Hello. I'm building a web service and I get this error. NEWS.News.CoverNews(string)': not all code paths return a value This is the WebMethod public SqlDataReader CoverNews(string Sport)...
0
by: Jas Shultz | last post by:
I'm using Win2K3 Enterprise edition with the latest .NET framework installed. I have this problem with getting "out of disk space" errors. It doesn't happen all the time but it does happen. When...
9
by: Max Weebler | last post by:
Hi, I have a datagrid built that has an alternating item style that sets the backcolor and ForeColor of its rows. I have 4 template columns. One of them has a LinkButton embedded in it to...
3
by: Roy Smith | last post by:
Is there some standard way to signal "not implemented yet" in unfinished code? When I'm coding, I'll often only flesh out one side of a branch, or delay writing some method until later. It would...
1
by: Sygnosys | last post by:
Hi, I'm using CppCodeProvider.dll in a CLI/C++ application and I simply can't make it work with CompileAssemblyFromSource() or any other functions. Is there something special for C++ that...
4
by: diyasher | last post by:
hello while running program that use system.management namespace and holds management event the exception throws "not found" and some time "not supported" unhandled management exception on...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.