importing VC6 dlls into VC.net (using MFC)

A

Anna

Hi,

I'm using VS.NET 2003 on Win2000 (SP3).

I am trying to import a dll developed in VC++6.0 into my
VC.net project. I keep getting linker errors complaining
about GetThisClass and GetThisMessageMap functions from
RUNTIME_CLASS and BEGIN_MESSAGE_MAP respectively. The
problem I found was in the redefinition of these macros.
The old versions, used in VC6.0 didn't have these
functions.

Does anybody know how can I import the dlls without re-
writing them in .Net. I have too many dlls that I would
like to re-use.

Thanks in advance.
Anna.
 
R

Ronald Laeremans [MSFT]

You cannot safely mix and match libraries compiled with different versions
of MFC (or any other C++ library for that matter) if you are passing C++
objects of that library across the library/dll boundary.

Note that I am not sure what you mean by "import".

Ronald Laeremans
Visual C++ team
 

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