How to Passs NULL as a IDispatch Pointer to method?
larry.bates at websafe.com
Wed Apr 18 09:14:57 EDT 2007
Yingpu Zhao wrote:
> Thanks to Larry.
> I want to pass the IDispatch pointer of other COM object to
> AddShapeInfo or pass null to tell x do nothing.
> for example.
> Rect= Dispatch("Rect.Document")
> ShapeSet = Dispatch("xxx.Document")
> ShapeSet.AddShapeInfo("Rect", 0, Shape)
> ShapeSet.AddShapeInfo("EmptyShape", 0, None)
I think you will need to pass a basically empty class that
is wrapped in an IDispatch object. See my earlier example.
More information about the Python-list