|
马上注册登录,享用更多网站功能!
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
以前是只要insert一个CATDialog之后
不做任何回调
就会提示错误
现在只是新建了一个工具条和按钮
但是在响应函数中添加了一个CATDlgNotify测试一下
结果编译就出现问题了
添加的是:
CAACafSearchCmd::CAACafSearchCmd() :
CATCommand (NULL, "CAACafSearchCmd")
{
CATApplicationFrame *pApplication = CATApplicationFrame::GetFrame();
if (NULL != pApplication) {
CATDlgWindow * pMainWindow = pApplication->GetMainWindow();
CATDlgNotify *pNotifyDlg = new CATDlgNotify
(pMainWindow, "MyButtonAccess", CATDlgNfyOK);
if (NULL != pNotifyDlg) {
pNotifyDlg->DisplayBlocked
("message displayed ","Title");
pNotifyDlg->RequestDelayedDestruction();
}
}
RequestDelayedDestruction();
}
提示的错误是:
make: MyAddinButton\MyDrawButton.m intel_a\code\bin\MyDrawButton.dll
CAACafSearchCmd.obj : error LNK2001: unresolved external symbol "public: virtual char * __thiscall CATDialog::GetResourceFilename(int)const " (?GetResourceFilename@CATDialog@@UBEPADH@Z)
CAACafSearchCmd.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall CATDlgNotify::ResetLetterObject(void)" (?ResetLetterObject@CATDlgNotify@@UAEXXZ)
CAACafSearchCmd.obj : error LNK2001: unresolved external symbol "public: virtual class l_CATDialog * __thiscall CATDlgNotify::GetLetterObject(void)" (?GetLetterObject@CATDlgNotify@@UAEPAVl_CATDialog@@XZ)
CAACafSearchCmd.obj : error LNK2001: unresolved external symbol "public: virtual int __thiscall CATDialog::RestoreState(class CATNotification *,class CATMarshal &)" (?RestoreState@CATDialog@@UAEHPAVCATNotification@@AAVCATMarshal@@@Z)
CAACafSearchCmd.obj : error LNK2001: unresolved external symbol "public: virtual int __thiscall CATDialog::SaveState(class CATNotification *,class CATMarshal &)" (?SaveState@CATDialog@@UAEHPAVCATNotification@@AAVCATMarshal@@@Z)
CAACafSearchCmd.obj : error LNK2001: unresolved external symbol "public: virtual enum CATStatusChangeRC __thiscall CATDialog::Cancel(class CATCommand *,class CATNotification *)" (?Cancel@CATDialog@@UAE?AW4CATStatusChangeRC@@PAVCATCommand@@PAVCATNotification@@@Z)
CAACafSearchCmd.obj : error LNK2001: unresolved external symbol "public: virtual enum CATStatusChangeRC __thiscall CATDialog::Desactivate(class CATCommand *,class CATNotification *)" (?Desactivate@CATDialog@@UAE?AW4CATStatusChangeRC@@PAVCATCommand@@PAVCATNotification@@@Z)
CAACafSearchCmd.obj : error LNK2001: unresolved external symbol "public: virtual enum CATStatusChangeRC __thiscall CATDialog::Activate(class CATCommand *,class CATNotification *)" (?Activate@CATDialog@@UAE?AW4CATStatusChangeRC@@PAVCATCommand@@PAVCATNotification@@@Z)
CAACafSearchCmd.obj : error LNK2001: unresolved external symbol "public: virtual class CATString & __thiscall CATDialog::GetName(void)" (?GetName@CATDialog@@UAEAAVCATString@@XZ)
CAACafSearchCmd.obj : error LNK2001: unresolved external symbol "public: virtual int __thiscall CATDlgNotify::IsAKindOf(char const *)const " (?IsAKindOf@CATDlgNotify@@UBEHPBD@Z)
CAACafSearchCmd.obj : error LNK2001: unresolved external symbol "public: virtual char const * __thiscall CATDlgNotify::IsA(void)const " (?IsA@CATDlgNotify@@UBEPBDXZ)
CAACafSearchCmd.obj : error LNK2001: unresolved external symbol "public: virtual class CATMetaClass * __stdcall CATDlgNotify::GetMetaObject(void)const " (?GetMetaObject@CATDlgNotify@@UBGPAVCATMetaClass@@XZ)
CAACafSearchCmd.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: int __thiscall CATDlgNotify::DisplayBlocked(class CATUnicodeString const &,class CATUnicodeString const &)" (__imp_?DisplayBlocked@CATDlgNotify@@QAEHABVCATUnicodeString@@0@Z)
CAACafSearchCmd.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall CATDlgNotify::CATDlgNotify(class CATDialog *,class CATString const &,unsigned long)" (__imp_??0CATDlgNotify@@QAE@PAVCATDialog@@ABVCATString@@K@Z)
CAACafSearchCmd.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall CATDlgNotify::~CATDlgNotify(void)" (__imp_??1CATDlgNotify@@UAE@XZ)
E:\hcl\temp\HechaoliangAddin\.\intel_a\code\bin\MyDrawButton.dll : fatal error LNK1120: 15 unresolved externals
# make-ERROR: intel_a\code\bin\MyDrawButton.dll |
|