maybe your error is(I guess)
you declare one function in header file but you havent this file in your code
like this:
this is one example
//////in header file CAnswer.h/////////
class CAnswer : public CDialog
...
...
public:
int test();
....
};
then you call this function in your file
void CAnswer::OnBnClickedButton2()
{
test();//Now you get this error
you need to delete this function(test) or you need to write test(function)
}
Answer error LNK2019: unresolved external symbol "public: int __thiscall CAnswer::test(void)" (?test@CAnswer@@QAEHXZ) referenced in function "public: void __thiscall CAnswer::OnBnClickedButton2(void)" (?OnBnClickedButton2@CAnswer@@QAEXXZ)
Answer fatal error LNK1120: 1 unresolved externals
or maybe this function is in your code like this
int test()
{
return 0;
}
again you get this error
or you need to import lib file to your project