While fixing the bug reported in #524, I noticed something.
If there is an interface in the COM type library with the same name as a symbol defined in ctypes or ctypes.wintypes, the codegenerator can only identify the symbol by its name, which leads to the symbol being imported and used inappropriately.
To prevent this confusion, the codegenerator will now determine whether a COM interface is one of the known symbols not only by its name but also by using its iid.
While fixing the bug reported in #524, I noticed something.
If there is an interface in the COM type library with the same name as a symbol defined in
ctypes
orctypes.wintypes
, thecodegenerator
can only identify the symbol by its name, which leads to the symbol being imported and used inappropriately.To prevent this confusion, the
codegenerator
will now determine whether a COM interface is one of the known symbols not only by its name but also by using its iid.