Click here to Skip to main content
15,893,588 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
is it posssible to create a .lib file instead of .dll in C#? or if there is anyway to convert the c# dll to lib? Expecting ur support.

Thanks,
Laje
Posted

It makes no sense due to very different programming models. The whole problem of using C# in development of native (unmanaged) applications is not trivial. Many developers thought is was impossible because such opportunity is not available in C# programming. However, CLI standard allows exporting of managed method from a .NET assembly to unmanaged. There is a smooth method of developing such libraries and any .NET language based on re-assembling of regular libraries. For further detail, please read my old Answer on the topic: loading C# DLL in MFC[^].

—SA
 
Share this answer
 
Comments
Satheesh1546 9-Feb-11 23:59pm    
Thanks SaKryukov
Sergey Alexandrovich Kryukov 10-Feb-11 13:10pm    
You're welcome. This is a really good and easy way, I tested it.
--SA
This[^] might help you
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 9-Feb-11 23:45pm    
Did you read this article yourself? It is completely dedicated to native programming (unmanaged) with no mention of .NET or C#. I cannot help answering the question in principle.
Sorry,
--SA
m@dhu 9-Feb-11 23:58pm    
FROM OP: or if there is anyway to convert the c# dll to lib

Not completely. That is why I asked the op to have a look into it whether it might help him.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900