- 积分
- 376
- 明经币
- 个
- 注册时间
- 2004-1-18
- 在线时间
- 小时
- 威望
-
- 金钱
- 个
- 贡献
-
- 激情
-
|
我是个学ARX的新手。编了这么个程序,想练练手。但是在C++中编译时,C中有这些错误。请问各位,问题出在哪?拜托拜托!!!
firstArx.cpp F:\Microsoft Visual Studio\MyProjects\firstArx\firstArx.cpp(8) : error C2018: unknown character '0xa3' F:\Microsoft Visual Studio\MyProjects\firstArx\firstArx.cpp(8) : error C2018: unknown character '0xfb' F:\Microsoft Visual Studio\MyProjects\firstArx\firstArx.cpp(9) : error C2143: syntax error : missing ';' before 'tag::id' F:\Microsoft Visual Studio\MyProjects\firstArx\firstArx.cpp(9) : fatal error C1004: unexpected end of file found Error executing cl.exe.
first.arx - 4 error(s), 0 warning(s)
#include<aced.h> #include<rxregsvc.h> initApp(); unloadApp(); firstARX();
initApp() { acedRegCmds->addCommand("firstARX_Commands","firstARX", "第一次",ACRX_CMD_TRANSPARENT,"firstARX"); } unloadApp() { acedRegCmds->removeGroup("firstARX_Commands"); } firstARX() {ads_alert("这是我的第一个ARX应用程序!”);} extern"C" AcRx::AppRetCode acrxEntryPoint(AcRx::AppMsgCode msg,void* pkt) { switch (msg) { case AcRx::kInitAppMsg: {acrxDynamicLinder->unlockApplication(pkt); initApp(); break;} case AcRx::kUnloadAppMsg: { unloadApp(); break;} default: break; } return AcRX::kRetOK; }
|
|