MFC VC++ ver 6 to .NET compilation errors...

  • Thread starter Jason Jefferies
  • Start date


Jason Jefferies

I'm currently converting a number of applications written
using the MFC in vc++ version 6 into a workable .NET
Just trying to build the apps in version 7 without
worrying about optimising the solution has produced a
number of compilation errors in the vc7 MFC classes.
I know a lot of stuff is not usable in version 7 but
cannot find a list of work arounds for a lot of it.

For instance, this structure appears in WinSock.h as well
as WinSock2.h in the same directory:
'c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7
\PlatformSDK\Include\WinSock2.h(109): error
C2011: 'fd_set' : 'struct' type redefinition'

'c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7
\atlmfc\include\afxsock.h(355): error
C3861: 'WSASetLastError': identifier not found, even with
argument-dependent lookup'

'c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7
\PlatformSDK\Include\WinSock2.h(1744): error
C2375: 'getsockname' : redefinition; different linkage
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7
\PlatformSDK\Include\WinSock.h(771) : see declaration
of 'getsockname''

Any assistance would be appreciated..



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