Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can you embed C code in .NET
Message
De
25/02/2005 14:30:03
 
 
À
25/02/2005 09:29:07
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
VB.NET 1.1
OS:
Windows XP SP2
Divers
Thread ID:
00990509
Message ID:
00990664
Vues:
20
I was curious, so I searched the web for a definition of "embedded code". I am not an expert, but hopefully the information that I found will clarify it a little and the mistakes I make will encourage more knowledgeable people to clarify it completely.

It is defined in a lot of online consumer contracts as code that is stored internally on a solid state device, i.e., firmware like BIOS. Searching for "firmware" and "embedded code" got a lot of hits.

In C++, you can mix Assembler Code in with your C++, but this is usually referred to as "inline", not "embedded". The programmer I know who does it has a background in chip design and he refers to it as "dropping down into assembler". I think that both "embedded" and "inline" are used when mixing script and HTML in webpages.

You can access code in non-.NET DLLs using .NET's dllimport attribute, which is explained in VS.NET help. I used it to implement impersonation, which uses some OS procedures. It is also the way to use unmanaged code in 3rd party DLLs.

Microsoft has an article called "An Overview of Managed/Unmanaged Code Interoperability" at
http://msdn.microsoft.com/library/en-us/dndotnet/html/manunmancode.asp that you might find helpful.

>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?
David S. Alexander
Kettley Publishing
20271 SW Birch Street, 2nd Floor
Newport Beach, CA 92660-1752
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform