If you just need to make the C functions accesible from .NET, I'd
suggest creating a C# wrapper that PInvokes the functions. If
performance is critical you'll want to make very coarse grained
functions. The overhead of switching from manged code to unmanaged
code can be high - not something you'd want to do inside a tight loop
in perf critical situation.
--
Scott
http://www.OdeToCode.com
On Fri, 3 Sep 2004 16:25:36 -0400, "Chuck Bowling"
<ch**********@sbcglobal-NO-SPAM.net> wrote:
I have a library if C functions that will eventually get wrapped in a class.
The question is, should i wrap them in a C++ wrapper and call the wrapper
from C# or should I wrap the C functions in a C# wrapper? Anybody got any
insight on this? My primary goal is speed. This is an audio application that
can get pretty cpu intensive depending on how the user has it configured...