How to Passs NULL as a IDispatch Pointer to method?

Yingpu Zhao ZhaoYingpu at gmail.com
Wed Apr 18 04:11:07 CEST 2007


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)

or

ShapeSet.AddShapeInfo("EmptyShape", 0, None)




More information about the Python-list mailing list