How to use VS2005 ClassLibrary in old MFC project?

J

Janus

Hi all,

I've got a third party class library that i want to use in an 'old' MFC
project (actually i need it in a Borland C++ builder project, but if i can
use it in MFC i propably can convert it to Borland.)

Because i only need 3 methods of the third party dll i want to create a C++
ClassLibrary wrapper. But how can i access this C++ ClassLibrary from an MFC
project? It's the problem of using managed code in an unmanaged environment.

I tried a lot of examples that uses COM to export to MFC. I think this is
the way to go, but get a lot of syntax problem because the examples are
mostly VS2003 code.

Can anybody help me with an example written in VS2005?

Thanx in advance.
 
B

Bruno van Dooren [MVP VC++]

I've got a third party class library that i want to use in an 'old' MFC
project (actually i need it in a Borland C++ builder project, but if i can
use it in MFC i propably can convert it to Borland.)

Because i only need 3 methods of the third party dll i want to create a
C++
ClassLibrary wrapper. But how can i access this C++ ClassLibrary from an
MFC
project? It's the problem of using managed code in an unmanaged
environment.

I tried a lot of examples that uses COM to export to MFC. I think this is
the way to go, but get a lot of syntax problem because the examples are
mostly VS2003 code.

Can anybody help me with an example written in VS2005?

Hi,
I don't have any examples at hand, but have you tried looking on
www.codeprojects.com ?
That is usually the first place I go to for examples.

--

Kind regards,
Bruno van Dooren
(e-mail address removed)
Remove only "_nos_pam"
 

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