我在VC里新建了一个objectAR文件,只在入口函数添加了一句话:acedAlert("My Sample");不知道加的位置对不对。
class CfirstWizardApp : public AcRxArxApp {
public: CfirstWizardApp () : AcRxArxApp () {}
virtual AcRx::AppRetCode On_kInitAppMsg (void *pkt) { // TODO: Load dependencies here
// You *must* call On_kInitAppMsg here AcRx::AppRetCode retCode =AcRxArxApp::On_kInitAppMsg (pkt) ; // TODO: Add your initialization code here [I]acedAlert("My Sample");[/I] return (retCode) ; }
virtual AcRx::AppRetCode On_kUnloadAppMsg (void *pkt) { // TODO: Add your code here
// You *must* call On_kUnloadAppMsg here AcRx::AppRetCode retCode =AcRxArxApp::On_kUnloadAppMsg (pkt) ;
// TODO: Unload dependencies here
return (retCode) ; }
virtual void RegisterServerComponents () { }
} ;
//----------------------------------------------------------------------------- IMPLEMENT_ARX_ENTRYPOINT(CfirstWizardApp)
调试的结果:acrxEntryPoint.cpp f:\vc2005\firstwizard\acrxentrypoint.cpp(46) : error C2664: 'acedAlert' : cannot convert parameter 1 from 'const char [10]' to 'const ACHAR *' Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast Build log was saved at "file://f:\vc2005\firstWizard\Debug\BuildLog.htm" firstWizard - 1 error(s), 0 warning(s) |