"Standard" DLL in C#/.NET?

Nerseus

Danner
Joined
Oct 22, 2002
Messages
2,547
Location
Arizona, USA
User Rank
*Expert*
I cant remember this offhand and a search on google didnt get what I expected (too vague I guess).

Can C# (or managed .NET) compile a "standard" DLL? Meaning, such that the DLL can be used from in, say VB6, or that youd define through DllImport (such as BitBlt or timeGetTime or other Win32 DLL functions)? Im not concerned about difficulty, just wanting to know if its possible (maybe some kind of attribute decorations or somesuch)?

Thanks a bunch :)

-Nerseus
 
You can interop with a .NET assembly via COM using a CCW (COM-callable wrapper), however you can not create a standard DLL unless you use C++, whether managed or unmanaged.
 
Thats what I thought... couldnt find anything to back it up though. Ill investigate whether I can code a simple C++ DLL that wraps calls to a C# assembly. Yuckums, working with older code :)

-Ner
 
Back
Top