Vicky
Vicky

Reputation: 1687

win32 dll in C# .net

Can C# .net be used to create a win32 dll. If possible can someone tell me how to do it?

Upvotes: 3

Views: 1158

Answers (2)

srnayak
srnayak

Reputation: 103

No way, C# code will be converted to IL which will be run in the CLR. So you can not make a native win32 dll using C#.

Upvotes: 1

Philippe Leybaert
Philippe Leybaert

Reputation: 171734

AFAIK, it's not possible to write unmanaged code in C#. You're stuck with C/C++.

You can, however, write COM components in C# that can be called from any Windows application.

Upvotes: 1

Related Questions