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

  • Thread starter Thread starter Jason Jefferies
  • Start date Start date
J

Jason Jefferies

I'm currently converting a number of applications written
using the MFC in vc++ version 6 into a workable .NET
solution.
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'

or,
'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'

or,
'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..

Thanks
Jason
 
Back
Top