一个控件里面的类型,对象类型转换,该如何处理

一个控件里面的类型,对象类型转换
文档里面有:
   IDispatch*   GetAVProperty(BSTR   name)
功能:得到摄像机对象的属性。
参数:name:摄像机名称
返回:PIXAVProperty对象
描述:camera标识要取的摄像机对象全名。
参考:ListCamera,SetCameraProperty


我在程序里面这样写:
        Dim   prpAV   As   New   PIXAVProperty
  prpAV   =   PIXCenter.GetAVProperty(itemID)

就不对了,不知道为什么,各位请帮忙指点一下,谢谢!



------解决方案--------------------
itemID这个参数人家要求是string类型的
------解决方案--------------------

SET prpAV = PIXCenter.GetAVProperty(itemID)
===============
另外,搜索关键字 BSTR VB

------解决方案--------------------
GetAVproperty对象是怎么来的
------解决方案--------------------
代码完整一点——只要完整一点点,才能判断怎么写法。
------解决方案--------------------
呵呵,我也觉得是这样。

SET prpAV = PIXCenter.GetAVProperty(itemID)