Zugriff auf DLL-Funktion
Verfasst: Sonntag 15. Juni 2014, 15:15
Hallo erstmal,
ich bin eher ein Anfänger in Python und kenne mich noch nicht so gut aus.
Mein Ziel ist es, mittels ctypes auf eine Funktion aus C:\Windows\system32\msvcrt.dll zuzugreifen.
Hier mein Code:
from ctypes import *
dll = cdll.LoadLibrary("C:\Windows\system32\msvcrt.dll")
m = "Hallo Welt!"
dll.printf(m)
Ich bekomme weder Rück-, noch Fehlermeldung auf den Skript. Ich habe erwartet, dass ich als Rückgabe "Hallo Welt!" bekomme.
Kann mir jemand helfen. Wäre sehr gut.
Danke im Voraus:)
ich bin eher ein Anfänger in Python und kenne mich noch nicht so gut aus.
Mein Ziel ist es, mittels ctypes auf eine Funktion aus C:\Windows\system32\msvcrt.dll zuzugreifen.
Hier mein Code:
from ctypes import *
dll = cdll.LoadLibrary("C:\Windows\system32\msvcrt.dll")
m = "Hallo Welt!"
dll.printf(m)
Ich bekomme weder Rück-, noch Fehlermeldung auf den Skript. Ich habe erwartet, dass ich als Rückgabe "Hallo Welt!" bekomme.
Kann mir jemand helfen. Wäre sehr gut.
Danke im Voraus:)