简体   繁体   中英

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?

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.

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#.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM