|
马上注册登录,享用更多网站功能!
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
我用ExecuteScript运行CATVba程序,可是调试总过不去。。。大哥们帮忙!
***************************************
#include "TestCmd.h"
#include "CATIndicationAgent.h"
#include "CATMathPlane.h"
#include "CATScriptUtilities.h"
#include "CATCreateExternalObject.h"
#include "CatScriptLibraryType.h"
#include "CATVariant.h"
CATCreateClass(TestCmd);
CATUnicodeString functionName("CATMain");
CATUnicodeString& iFunctionName=functionName;
CATVariant var;
TestCmd::TestCmd() :
CATStateCommand ("TestCmd", CATDlgEngOneShot, CATCommandModeExclusive)
,_Indication(NULL)
{
CATScriptUtilities::ExecuteScript("C:\\Documents and Settings\\liguangyi\\Local Settings\\Temp\\VBAProject1.catvba", catScriptLibraryTypeVBAProject, "模块1", var, iFunctionName, NULL, 0,TRUE);
}
*****************************************************************
报错如下:
.......
## start step: link2nd at 02/09/2006-14:02:37
# make: ASSET\CmdModule.m intel_a\code\bin\CmdModule.dll
TestCmd.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static long __stdcall CATScriptUtilities::ExecuteScript(class CATUnicodeString const &,enum CatScriptLibraryType,class CATUnicodeString const &,struct tagVARIANT &,class CATUnicodeString const &,struct tagVARIANT *,unsigned int,unsigned char)" (__imp_?ExecuteScript@CATScriptUtilities@@SGJABVCATUnicodeString@@W4CatScriptLibraryType@@0AAUtagVARIANT@@0PAU4@IE@Z)
D:\WORK\CATIA-VC++\workspace2\.\intel_a\code\bin\CmdModule.dll : fatal error LNK1120: 1 unresolved externals
# make-ERROR: intel_a\code\bin\CmdModule.dll
## end step: link2nd at 02/09/2006-14:02:38
## start step: dummynls at 02/09/2006-14:02:38
## end step: dummynls at 02/09/2006-14:02:38
== Command done, return code = 0
小弟觉得参数1和参数3有问题,可是论坛里没有这方面的帖子,相关的也只是引用script程序,不是引用CATVba程序,初学不会,见笑了。望高手们明示..... |
|