C++ Library conversion

S

Simon Jefferies

Hello,

I'd like some advice on conversion of a C++ library. The library is a
standard C++ library (.lib) and is included into a MFC application. I am
currently looking to replace this with a VB .NET application.

What I'm looking for advice on is what to do with the C++ library? It is
maths intensive as it computes curves, would it be better as a COM
component? or rewrite it in .NET? Or is there another alternative?

TIA
Simon Jefferies
Tools Programmer
Headfirst Productions
 
H

Herfried K. Wagner [MVP]

* "Simon Jefferies said:
I'd like some advice on conversion of a C++ library. The library is a
standard C++ library (.lib) and is included into a MFC application. I am
currently looking to replace this with a VB .NET application.

What I'm looking for advice on is what to do with the C++ library? It is
maths intensive as it computes curves, would it be better as a COM
component? or rewrite it in .NET? Or is there another alternative?

If there is only maths stuff in the library, I would keep it in C++.
You may convert the code to managed C++, but re-implementing it in
VB.NET completely IMO is a lot of work and doesn't have many advantages.
 
S

Simon Jefferies

Thanks for your info,

Can a .NET application use a standard C++ library in any way?

Cheers
Simon
 
H

Herfried K. Wagner [MVP]

* "Simon Jefferies said:
Can a .NET application use a standard C++ library in any way?

Yes, have a look at the documentation for 'Declare' and
'DllImportAttribute'.
 

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

Top