If you were writing code in VB.NET, you would give a directive, something like #BEGIN VC++, and then start writing code in C++. This is not supported in .NET. You can make an assembly in another .NET language and reference that.
But, why would you want to do embedded code? If it's managed C++ code, then it will compile to the same MSIL and use the same runtimes. If it's unmanaged code, then you need to be careful to handle all the garbage collection and cleanup.
>I am not sure what embedded code is. I assume it means I make a call to a C or C++ program or routine.
>Would someone give me a more precise definition of embedded code and can you embed C++ in .NET?
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer