Python调用DLL并返回char *字符串
(2013-01-24 18:02:02)
标签:
地址字符串函数pythondllit |
分类: 奋斗 |
extern "C" __declspec(dllexport) char * TestTest (void)
{
}
import ctypes
dll = ctypes.CDLL('Test.dll')
rst = dll.TestTest()
print(rst)
size = -1
rst = ctypes.string_at(rst, size)
print(rst.decode('utf-8'))
1762918400
Hello Huanhuan!
后一篇:Python调用QQ截图工具