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

X-Received by 10.13.232.198 with SMTP id r189mr2899182ywe.102.1478953006618; Sat, 12 Nov 2016 04:16:46 -0800 (PST)
X-Received by 10.157.37.247 with SMTP id q110mr679388ota.5.1478953006579; Sat, 12 Nov 2016 04:16:46 -0800 (PST)
Path csiph.com!feeder.erje.net!2.us.feeder.erje.net!newspeer1.nac.net!border2.nntp.dca1.giganews.com!nntp.giganews.com!p16no776439qta.1!news-out.google.com!x12ni1361ita.0!nntp.google.com!q124no962354itd.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
Newsgroups de.comp.lang.python
Date Sat, 12 Nov 2016 04:16:46 -0800 (PST)
Complaints-To groups-abuse@google.com
Injection-Info glegroupsg2000goo.googlegroups.com; posting-host=47.67.141.182; posting-account=XE941AoAAADMGpdMmwjtbv1vw2WWgf0t
NNTP-Posting-Host 47.67.141.182
User-Agent G2/1.0
MIME-Version 1.0
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>
Injection-Date Sat, 12 Nov 2016 12:16:46 +0000
Content-Type text/plain; charset=UTF-8
Content-Transfer-Encoding quoted-printable
Lines 16
Xref csiph.com de.comp.lang.python:4582

Show key headers only | 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