iCAx开思工具箱

标题: 询问一个CAA的错误提示 [打印本页]

作者: liketulip    时间: 2004-9-6 12:59
标题: 询问一个CAA的错误提示
以前是只要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
作者: liketulip    时间: 2004-9-6 13:05
添加对话框的错误提示是:
  
== cmd /c mkmk  -u -g  CAAPuiPRDWorkshopConfig.m =========================================
  
## start step: CIbuild   at 09/06/2004-13:05:54
# make: CAAProductStructureUI.edu intel_a\code\productIC\CAAProductStructureUI.eduIC.script
Script Error >>> method: <AddPrereqComponent>, argument: <"ObjectSpecsModeler"  AddPrereqComponent("ApplicationFrame"> not valid <<<
Script Error >>> file: E:\UsercaseWorkspace\CreatingWorkbench\CAAProductStructureUI.edu\IdentityCard\IdentityCard.h line: 16 compilation fa## end   step: CIbuild   at 09/06/2004-13:05:55
  
## start step: DataUpdate   at 09/06/2004-13:05:55
iled <<<
# mkmk-ERROR: Identity card: error while compiling CAAProductStructureUI.edu from E:\UsercaseWorkspace\CreatingWorkbench\.\CAAProductStructureUI.edu\IdentityCard\IdentityCard.h
# make-ERROR: intel_a\code\productIC\CAAProductStructureUI.eduIC.script
# mkmk-ERROR: CAAProductStructureUI.edu -> The script of the identity card can not be load.
# mkmk-ERROR: CAAProductStructureUI.edu -> The script of the identity card can not be load.
# mkmk-ERROR: CAAProductStructureUI.edu -> This FrameWork is not a valid object due to previous error:## end   step: DataUpdate   at 09/06/2004-13:05:55
  
## start step: DataUpdate   at 09/06/2004-13:05:55
## end   step: DataUpdate   at 09/06/2004-13:05:55
  
# mkmk-ERROR: CAAProductStructureUI.edu -> The script of the identity card can not be load.
# mkmk-ERROR: CAAProductStructureUI.edu -> This Framework is not a valid object due to previous error:
  
== Command done, return code = 0
  
Tool returned code: 0
作者: liketulip    时间: 2004-9-6 13:09
acoka说是确认IdentityFile里有ApplicationFrame  
  IMakefile里有CATApplicationFrame  
不过对那里面的东西不太理解的
作者: acoka    时间: 2004-9-6 13:16
推荐用CATMMUIStateCommand以上的做基底,CATCommand功能太少,自己要定义的东西太多
  
你给的错误基本都是link找不到
作者: liketulip    时间: 2004-9-6 15:42
是啊
很容易出现link的问题




欢迎光临 iCAx开思工具箱 (https://t.icax.org/) Powered by Discuz! X3.3