找回密码
 欢迎注册
搜索
热搜: 活动 交友 discuz
查看: 2089|回复: 1

求助:StoreSCU连接agfa服务时失败

[复制链接]
发表于 2008-10-8 15:49:29 | 显示全部楼层 |阅读模式
我使用UC库做了一个StoreSCU,结果连接agfaStore服务时,出现连接失败的问题!调试发现出错的地方在下面的函数中的AcceptedPresentationContexts数组内容为空,请教各位大侠,能否告诉我是什么原因引起的,谢谢……

BOOL PDU_Service :: InterogateAAssociateAC()
{
UINT Index, ValidPresContexts;
PresentationContextAccept PresContextAccept;
Array<PresentationContextAccept> PCArray ( FALSE );
Index = 0;
ValidPresContexts = 0;
PCArray = (AAssociateAC :: PresContextAccepts);
while ( AcceptedPresentationContexts.GetSize())
  AcceptedPresentationContexts.RemoveAt ( 0 );
while ( Index < PCArray.GetSize())
  {
  PresContextAccept = PCArray.Get ( Index );
  if(!PresContextAccept.Result)
   {
   AcceptedPresentationContexts.Add ( PresContextAccept );
   }
  ++Index;
  }
if(!AcceptedPresentationContexts.GetSize())
{
  ::MessageBox(NULL,"位置2","错误",MB_OK);
  return ( FALSE ); // no, this association should be terminated
}
return ( TRUE ); // yes, the communication should work out
}
发表于 2009-2-2 11:42:04 | 显示全部楼层
看一下你提供的PresentationContext有哪些,是否在agfa能接收的PresentationContext列表中.
您需要登录后才可以回帖 登录 | 欢迎注册

本版积分规则

快速回复 返回顶部 返回列表