I am getting this error :-
error LNK2019: unresolved external symbol "public: class ATL::CStringT<char,class StrTraitMFC_DLL<char,class ATL::ChTraitsCRT<char> > > __thiscall CFILicenseSettings::GetCodeStartup1(void)" (?GetCodeStartup1@CFILicenseSettings@@QAE?AV?$CStringT@DV?$StrTraitMFC_DLL@DV?$ChTraitsCRT@D@ATL@@@@@ATL@@XZ) referenced in function __catch$?ValidateLicense@CFIServerDlg@@AAE_NXZ$0
The function is defines as follows
CString CFILicenseSettings::GetCodeStartup1()
{
BYTE* bCode = new BYTE[28];
int * pnSize = new int(28);
GetCodeIn1 (bCode, pnSize );
int y;
RC4_Init(m_byX, strlen((char*)m_byX));
for (y = 0; y < *pnSize ; y++)
{
m_MainLFString[y] = bCode[y] ^ RC4_Output();
}
m_MainLFString[y] = '\0';
m_szMainLFString = m_MainLFString;
delete [] bCode;
delete pnSize;
return m_szMainLFString;
}
To use CString i have also added header file atlstr.h file in my project too
Can you please help me to remove this error