D
David Lowndes
I have an unmanaged C++ DLL built in Visual Studio 4.2. This DLL exports a
Mike,
Passing allocated object such as CStrings across the DLL boundary
implies that you have to use the C & MFC DLLs in order to share a
common memory manager. Since your VC4.2 application and your VC2003
application will be linking to different versions of their run-time
libraries, this isn't going to me a match made in heaven.
Basically I think the linker error is telling you you're onto a
non-starter.
If you rebuild your old project with VS2003 and ensure that both
projects are built with MFC as a shared DLL, you should be OK.
Dave
class, which I want to use in my VC++ .NET 2003 app.
Everything works fine however some of the methods in the exported class take
CString parameters. When I try using these I get a linker error as follows
Mike,
Passing allocated object such as CStrings across the DLL boundary
implies that you have to use the C & MFC DLLs in order to share a
common memory manager. Since your VC4.2 application and your VC2003
application will be linking to different versions of their run-time
libraries, this isn't going to me a match made in heaven.
Basically I think the linker error is telling you you're onto a
non-starter.
If you rebuild your old project with VS2003 and ensure that both
projects are built with MFC as a shared DLL, you should be OK.
Dave