T
teds
Hi,
As a newbie to .Net, I am interested in wrapping a library's C
functions to be accessible from .Net. These C functions take strings
as input and output parameters and may reallocate strings internally if
they need to be extended.
It appears that there are (at least) 2 ways to wrap my C functions.
The first way is to use managed C++ and create a .Net assembly. The
second way is to use C# to do the same thing.
My question is what are the advantages to either case assuming I now
C++ and C# equally well (or pooly)? Both would be accessible to any
..Net language and it would seem that I would be able to build a single
DLL if I used mananged C++ whereas I would need a separate DLL for my
C# wrapper. Are there other (dis)advantages I'm not considering?
Thanks,
Ted
As a newbie to .Net, I am interested in wrapping a library's C
functions to be accessible from .Net. These C functions take strings
as input and output parameters and may reallocate strings internally if
they need to be extended.
It appears that there are (at least) 2 ways to wrap my C functions.
The first way is to use managed C++ and create a .Net assembly. The
second way is to use C# to do the same thing.
My question is what are the advantages to either case assuming I now
C++ and C# equally well (or pooly)? Both would be accessible to any
..Net language and it would seem that I would be able to build a single
DLL if I used mananged C++ whereas I would need a separate DLL for my
C# wrapper. Are there other (dis)advantages I'm not considering?
Thanks,
Ted