Managed extensions vs typelib import???

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I've got a Windows service application that I wrote in Visual C++ 6.0 quite a while back. It hosts a single COM object that's used for pulling out data that's past into the service (from Unix) via sockets. I've been able to interface with the service, from C#, through a interop assembly that I created using the type library of the service

Here are some questions that have been bouncing around in my head

1) If I were to recompile the service using the /clr switch and add a managed interface to it, would that essentially be the same thing as what I've already accomplished using the interop assembly?

2) Does either way provide better performance in terms of memory and CPU utilization

Thank
Eric
 
You may be using marshalling to convert System.Array inputs to SafeArrays when calling the COM componen
or some similar datatype conversio

Implementing a MC++ library could avoid some of the overhead of that.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top