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
_______________________________________________
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32

Reply via email to