dll - ctypes returns wrong type in Python -
i trying call method dll file using python 2.7
my code below:
import ctypes mydll = ctypes.cdll("k:\\development\\dll_test\\xx.dll") mydll.mymethod.argtypes=[ctypes.c_char_p] mydll.mymethod.restype=ctypes.c_char_p appid=ctypes.c_char_p('xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx') challenge= mydll.mymethod(appid)
in dll file, mymethod returns *char returns empty string in python.
what can problem?
thanks support.
Comments
Post a Comment