| 刚学就遇到个编译的问题,我的系统式vc.NET2003,按照例子操作,编译时提示无法解析的外部符号,请高手帮忙解决。新人遇到问题不知道如何分析,请高人不吝赐教。 错误提示如下: Step01 error LNK2019: 无法解析的外部符号 "public: static class AcRxClass * __cdecl AcEdCommandStack::desc(void)" (?desc@AcEdCommandStack@@SAPAVAcRxClass@@XZ) ,该符号在函数 "public: static class AcEdCommandStack * __cdecl AcEdCommandStack::cast(class AcRxObject const *)" (?cast@AcEdCommandStack@@SAPAV1@PBVAcRxObject@@@Z) 中被引用 原代码如下:(程序打包上传到附件,方便大家帮我解决问题时调试) #include "stdafx.h"#include <aced.h>
 #include <rxregsvc.h>
 void initApp(); void unloadApp();
 void helloWorld();
 void initApp() {
 // register a command with the AutoCAD command mechanism
 acedRegCmds->addCommand("HELLOWORLD_COMMANDS",
 "Hello",
 "Bonjour",
 ACRX_CMD_TRANSPARENT,
 helloWorld);
 }
 void unloadApp() {
 acedRegCmds->removeGroup("HELLOWORLD_COMMANDS");
 }
 void helloWorld() {
 acutPrintf("\nHello World!"); //实现本程序的具体功能
 }
 extern "C" AcRx::AppRetCode acrxEntryPoint(AcRx::AppMsgCode msg, void* pkt)
 {
 switch (msg)
 {
 case AcRx::kInitAppMsg:
 acrxDynamicLinker->unlockApplication(pkt);
 acrxRegisterAppMDIAware(pkt);
 initApp();
 break;
 case AcRx::kUnloadAppMsg:
 unloadApp();
 break;
 default:
 break;
 }
 return AcRx::kRetOK;
 }
 
 
 |