Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Converting Project: VC++ 6.0 to VC++ .NET

Status
Not open for further replies.

michaelkrauklis

Programmer
Dec 5, 2001
226
US
I'm having a problem upgrading an existing project from VC++ 6.0 to .NET. When I import the old project into Visual Studio .NET I go through the standard upgrade process, but when I try to build I get linking errors in the MFC lib. eg:

[ProjectName] error LNK2005: "void __cdecl operator delete(void *,int,char const *,int)" (??3@YAXPAXHPBDH@Z) already defined in nafxcwd.lib(afxmem.obj)

Any clue as to what's going on or how to fix it? Thanks. MYenigmaSELF:-9
myenigmaself@yahoo.com
"If debugging is the process of removing bugs, then programming must be the process of putting them in." --Dykstra
 
I fixed the problem myself by referencing the MFC Lib as a Shared DLL instead of a Static Library. MYenigmaSELF:-9
myenigmaself@yahoo.com
"If debugging is the process of removing bugs, then programming must be the process of putting them in." --Dykstra
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top