NET and VC6 DLLs

G

Guest

Hello, I have some VC6 DLLs and I want to use them with NET EXEs (MFC 7.0),
but the linker give me many errors, especially in functios with CStrings
(parameters or return); How can I fix it? or have I to compile the VC6 DLLs
in NET?

Thanks in advance,
William GS
 
C

Carl Daniel [VC++ MVP]

William GS said:
Hello, I have some VC6 DLLs and I want to use them with NET EXEs (MFC
7.0),
but the linker give me many errors, especially in functios with CStrings
(parameters or return); How can I fix it? or have I to compile the VC6
DLLs
in NET?

You need to recompile MFC DLLs with the same version of the compiler that
you're using for the EXE. They're not binary compatible across VC6 -> VC7
(nor VC7 -> VC7.1 nor VC7.1 -> VC8, as far as I know).

-cd
 

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