DLL programming using C or C sharp
-
Hallo guys,
i am now programming a DLL which both schoud be able to be used by C# and VB.
This DLL should do soming caculations and send out the result through the RS232.I have few experience with the DLL programming. I find DLL could be write with C# or C. I do not know use which one to write the DLL.
Any one have idea, whith the difference of the DLL written in C and C#
Thanks in advance.
Bag
-
take C;)
-
poo'dded schrieb:
take C;)
Hi POO
could you give me some reasons? Why cannt C#
C# code is more easy to write
-
Is there a compelling reason to use C?
If not, use C# because if you target C# and VB, then .NET is the obvious choice and makes interop much easier because you work within the type system of .NET.
“poo”'s response was probably not meant seriously.
-
Konrad Rudolph schrieb:
Is there a compelling reason to use C?
If not, use C# because if you target C# and VB, then .NET is the obvious ....
Thanks for your reply.
I have started programming the DLL with C#. Till now no problem.