Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > de.comp.lang.python > #4582

Aufruf einer Funktion aus einer DLL funktioniert in Python 2.6, aber nicht in Python 2.7

Newsgroups de.comp.lang.python
Date 2016-11-12 04:16 -0800
Message-ID <fe50f3fa-9fdc-4e3a-b8f9-12cf86e32c87@googlegroups.com> (permalink)
Subject Aufruf einer Funktion aus einer DLL funktioniert in Python 2.6, aber nicht in Python 2.7
From "Torsten P." <topic2k@googlemail.com>

Show all headers | View raw


Hallo Liste,

ich versuche gerade einen Programmcode von Python 2.6 auf Python 2.7 zum Laufen zu bringen. In dem Code wird aus einer DLL eine Funktion aufgerufen. In Python 2.6 funktioniert dies auch, aber wenn ich den gleichen Code in Python 2.7 ausführe, scheitert der Funktionsaufruf.

Meine Frage ist nun, ob sich im Zusammenspiel Python und DLL zwischen 2.6 und 2.7 etwas verändert hat? Ich habe jedenfalls bis jetzt nichts dazu gefunden.

Die DLL wird in beiden Versionen erfolgreich geöffnet, nur der Funktionsaufruf scheitert.
Der DLL-Code ist hier: https://github.com/EventGhost/EventGhost/blob/master/_build/extensions/WinUsbWrapper/WinUsbWrapper.c#L148
Der betreffende Python-Code: https://github.com/EventGhost/EventGhost/blob/master/eg/Classes/WinUsb.py#L625

Back to de.comp.lang.python | Previous | NextNext in thread | Find similar


Thread

Aufruf einer Funktion aus einer DLL funktioniert in Python 2.6, aber nicht in Python 2.7 "Torsten P." <topic2k@googlemail.com> - 2016-11-12 04:16 -0800
  Re: [Python-de] Aufruf einer Funktion aus einer DLL funktioniert in Python 2.6, aber nicht in Python 2.7 Christopher Arndt <chris@chrisarndt.de> - 2016-11-12 13:34 +0100
  Re: [Python-de] Aufruf einer Funktion aus einer DLL funktioniert in Python 2.6, aber nicht in Python 2.7 "Diez B. Roggisch" <deets@web.de> - 2016-11-12 17:30 +0100

csiph-web