I am coming from VBA, and my understanding of COM internals is very weak.

2 questions:
1) What do I replace IWhatever with, and how do I find that out? (The argument is supposed to be of type VBProject)
2) How do I get an instance of IWhatever?

Many thanks.
Zev Spitz

Andrew MacIntyre wrote:
I have an issue using comtypes, which I have already resolved using pywin32. I need to pass Nothing (or the equivalent) into
acc.VBE.Events.ReferencesEvents
Under pywin32, I pass None, and that works.
What is the equivalent of Nothing in comtypes?

Often just a Null pointer of the correct type, e.g.
   NullPtr = POINTER(Iwhatever)()

If a VARIANT is required, one of VARIANT.empty, VARIANT.null or VARIANT.missing.

-------------------------> "These thoughts are mine alone!" <---------
Andrew MacIntyre           National Licensing and Allocations Branch
tel:   +61 2 6219 5356     Inputs to Industry Division
fax:   +61 2 6253 3277     Australian Communications & Media Authority
email: andrew.macint...@acma.gov.au http://www.acma.gov.au/
If you have received this email in error, please notify the sender immediately 
and erase all copies of the email and any attachments to it. The information 
contained in this email and any attachments may be private, confidential and 
legally privileged or the subject of copyright. If you are not the addressee it 
may be illegal to review, disclose, use, forward, or distribute this email 
and/or its contents.
Unless otherwise specified, the information in the email and any attachments is intended as a guide only and should not be relied upon as legal or technical advice or regarded as a substitute for legal or technical advice in individual cases. Opinions contained in this email or any of its attachments do not necessarily reflect the opinions of ACMA.

_______________________________________________
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32

Reply via email to