Hi
I have a project from the MFC/C++ VS2010, but I need to use ".NET Library" inside of my project. Actually I need to have a native and manged code at same time. So I am trying to use CLI/C++ facilities and integration, for that purpose I created "Empty CLI" project from the VS2010 and then I added all of my MFC source inside of this project, But When I want to the build it, I get these errors:
Error 4 error LNK2005: "public: virtual int __thiscall CComboEdit::PreTranslateMessage(struct tagMSG *)" (?PreTranslateMessage@CComboEdit@@UAEHPAUtagMSG@@@Z) already defined in InPlaceList.obj D:\KTC\EWS\Source\EWS-CLI\EngSystem\EngSystem\
GridCellCombo.obj EngSystem
Error 16 error LNK2005: "protected: void __thiscall CInPlaceList::OnKeyUp(unsigned int,unsigned int,unsigned int)" (?OnKeyUp@CInPlaceList@@IAEXIII@Z) already defined in InPlaceList.obj D:\KTC\EWS\Source\EWS-CLI\EngSystem\EngSystem\GridCellCombo.obj EngSystem
Error 15 error LNK2005: "protected: void __thiscall CInPlaceList::OnKeyDown(unsigned int,unsigned int,unsigned int)" (?OnKeyDown@CInPlaceList@@IAEXIII@Z) already defined in InPlaceList.obj D:\KTC\EWS\Source\EWS-CLI\EngSystem\EngSystem\GridCellCombo.obj EngSystem
Error 12 error LNK2005: "protected: virtual struct AFX_MSGMAP const * __thiscall CInPlaceList::GetMessageMap(void)const " (?GetMessageMap@CInPlaceList@@MBEPBUAFX_MSGMAP@@XZ) already defined in InPlaceList.obj D:\KTC\EWS\Source\EWS-CLI\EngSystem\EngSystem\GridCellCombo.obj EngSystem
Error 17 error LNK1561: entry point must be defined D:\KTC\EWS\Source\EWS-CLI\EngSystem\EngSystem\LINK EngSystem
Additionally from the GridCellCombo.cpp I have these library
#include "../stdAfx.h"
#include "../UserView.h"
#include "../GridCtrl_src/GridCell.h"
#include "../GridCtrl_src/GridCtrl.h"
#include "GridCellCombo.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
any help would be appreciated.
Best Regards.
Homay