Missing linkage of resource

Tech-Archive recommends: Fix windows errors by optimizing your registry



Hi,

I'm building an application based on doc/view architecture, where my
view, of class CMyView, is derived from CFormView (That is the view
itself is sort of a dialog).

I created a new dialog resource, IDD_MY_DIALOG for which the matching
class is CMyDialog. Now when a button is pushed in the main view I
want to construct a CMyDialog object and DoModal it. However, he
compiler complains CMyDialog is an unresolved symbol in CMyView.obj:

MyView.obj : error LNK2001: unresolved external symbol "public:
__thiscall CMyDialog::CMyDialog(class CWnd *)" ...

So obviously MyDialog.cpp isn't linked to MyView.obj...

Am I doing something wrong? If so, what? If not, how do I fix the
problem?

Thank you very much.
.


Quantcast