[python-win32] check if comserver is registered, no -> install it?
Harald Armin Massa[legacy]
haraldarminmassa at gmail.com
Wed Dec 19 10:08:37 CET 2012
Hallo Steffen,
> Hi i tried to do exactly this. But on executing the line
>
>
> dll = ctypes.OleDLL('myComServer.dll')
>
> i get following error:
>
> Traceback (most recent call last):
> File "C:\Temp\com_tests.py", line 21, in <module>
> x = ctypes.OleDLL(os.path.realpath(local_dll))
> File "C:\Python32_x86_64\lib\ctypes\__init__.py", line 353, in __init__
> self._handle = _dlopen(self._name, mode)
> WindowsError: [Error 193] %1 ist keine zulässige Win32-Anwendung
>
a common cause for this error is another file with the same name in
the system path. As in "python and windows try to load excel from
microsoft, but there is some excel.dll from somebody who tries to
excell in some area"
Sysinternals diskmon is a nice tool to debug this stuff. Try to google
for it, microsoft changes it's website structure faster then bing can
follow.
Harald
--
LightningTalkMan
a brand of GHUM GmbH
Spielberger Straße 49
70435 Stuttgart
0173/9409607
More information about the python-win32
mailing list