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

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

python - Django-cities exits with "killed" -

python - How to get a widget position inside it's layout in Kivy? -