Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can you embed C code in .NET
Message
From
25/02/2005 09:48:39
 
 
To
25/02/2005 09:29:07
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
Environment:
VB.NET 1.1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
00990509
Message ID:
00990520
Views:
19
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
Previous
Reply
Map
View

Click here to load this message in the networking platform