Ich bin dabei zum Ersten Mal (für mich^^) eine DLL Datei in Python aufzurufen.
Nach etwas belesen fand ich immer das ähnliche Muster:
Code: Alles auswählen
import ctypes
def script_to_cm(file):
return dll.LoadGpc(file)
dll = ctypes.windll.LoadLibrary('LibCronusMAX.dll')
script_to_cm("Fortnite_Personal_Script.gpc")
Code: Alles auswählen
Traceback (most recent call last):
File "C:\Users\Philipp\Desktop\Eigene_Programme\API's\CronusMax_API\Send_GPC_Test.py", line 7, in <module>
script_to_cm("Fortnite_Personal_Script.gpc")
File "C:\Users\Philipp\Desktop\Eigene_Programme\API's\CronusMax_API\Send_GPC_Test.py", line 4, in script_to_cm
return dll.LoadGpc(file)
File "C:\Users\Philipp\AppData\Local\Programs\Python\Python35\lib\ctypes\__init__.py", line 360, in __getattr__
func = self.__getitem__(name)
File "C:\Users\Philipp\AppData\Local\Programs\Python\Python35\lib\ctypes\__init__.py", line 365, in __getitem__
func = self._FuncPtr((name_or_ordinal, self))
AttributeError: function 'LoadGpc' not found
Ich finde auch nichts hilfreiches im Internet und da ich noch nie mit einer DLL Datei (also Python mit C++) gearbeitet habe, weiß ich auch nicht wo der Fehler liegen könnte.public void LoadGpc(string filename); - Same as above, except it takes a filename and will load whatever is in the file as bytecode
Schätze Mal, dass ich die Funktion auch falsch aufrufe?
Vllt eine Idee wo de Fehler liegt und vllt irgendeine Quelle wo ich mich belesen kann, wie ich das machen muss?
Grüße,
xXSkyWalkerXx1