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: Subject: Aufruf einer Funktion aus einer DLL funktioniert in Python 2.6, aber nicht in Python 2.7 From: "Torsten P." 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 Hallo Liste, ich versuche gerade einen Programmcode von Python 2.6 auf Python 2.7 zum La= ufen zu bringen. In dem Code wird aus einer DLL eine Funktion aufgerufen. I= n Python 2.6 funktioniert dies auch, aber wenn ich den gleichen Code in Pyt= hon 2.7 ausf=C3=BChre, scheitert der Funktionsaufruf. Meine Frage ist nun, ob sich im Zusammenspiel Python und DLL zwischen 2.6 u= nd 2.7 etwas ver=C3=A4ndert hat? Ich habe jedenfalls bis jetzt nichts dazu = gefunden. Die DLL wird in beiden Versionen erfolgreich ge=C3=B6ffnet, nur der Funktio= nsaufruf 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