|I tried to identify what is the problem for giving this kind of error and I found that one of function declared object of dialog class as follows
Dlg_Details *pDet = NULL;
and then it creates instance
pDet = new Details_Dlg();
and here it is giving following err
"error LNK2001: unresolved external symbol "public: __thiscall Dlg_Details::Dlg_Details(class CWnd *)"
.\Release\myapp.exe : fatal error LNK1120: 1 unresolved externals"
when i commented out above line of code (creating instance using new) then appln compiles and link properly.
I tried to go to the detail and found that the constructor of above class is declare as
"Dlg_Details(CWnd* pParent = NULL)" in header file and its implementation as in .cpp file is as follows.
"CDlg_Card_Details::CDlg_Card_Details(CWnd* pParent /*=NULL*/)
: CDialog(Dlg_Details::IDD, pParent)
variables are initialized
and I tried to changing its declaration in header file as
but still the problem persist. Can you suggest where this code going wrong during linking.
modified on Tuesday, July 12, 2011 8:20 AM