Questions tagged [pythoncom]

PythonCOM is a module, encapsulating the OLE automation API.

PythonCOM is a module, encapsulating the OLE automation API.

http://timgolden.me.uk/pywin32-docs/html/com/win32com/HTML/PythonCOM.html

108 questions
0
votes
1 answer

python win32com, are objects automatically re-used?

The python code iterates over the paragraphs of a simple document (7 lines "Line 1", "Line 2" etc). I expect that each paragraph-object is unique, but actually I get duplicates, in this case 0x25173368. What happens? It is completely against my…
olpa
  • 1,167
  • 10
  • 28
0
votes
1 answer

Instantiating VisualStudio.VCProjectEngine.10.0 and later fails mysteriously, 8.0 doesn't

Note: the question was originally about Python and win32com, but it turns out that the issue exists within the COM server, not the client-side. Therefore the information in the question and the answer are applicable to all languages that are usable…
0xC0000022L
  • 20,597
  • 9
  • 86
  • 152
-1
votes
1 answer

How to fix [Type Error: unsupported operand type(s) for +=: 'builtin_function_or_method' and 'str'] error in Python

I'm programming a simple keylogger that writes in a output file, but when I try to run it, it brings me back this error: [TypeError: unsupported operand type(s) for +=: 'builtin_function_or_method' and 'str'] Also the output file is written with…
1 2 3 4 5 6 7
8