因项目需要,在软件中加入agent的提醒功能。方法如下:
1.添加com引用:Microsoft Agent Server 2.0,如下图所示:
图片1
2.在程序页添加引用代码:using AgentObjects;
3.主要代码段:
IAgentCtlCharacterEx ICCE;
IAgentCtlRequest ICR;
ICR = axAgent1.Characters.Load("merlin", "merlin.acs");
ICCE = axAgent1.Characters.Character("merlin");
ICCE.Show(0);
ICCE.Think(s);问题1:运行后出错或者显示不出来agent?
答:电脑里没有安装Microsoft Agent,可以下载安装Microsoft Agent组件:
![]() |
/uploads/soft/200906/1_01115159.rar |



