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

java - How to specify maven bin in eclipse maven plugin? -

Error while updating a record in APEX screen -

c++ - In an add-in in Excel, written in C(++), how does one get the name of the function which called into the addin? -