2007年04月01日 星期日 13:31
小弟计划用ctypes来访问 dll文件,改dll文件的.h文件中定义了一个结构: UdbEntity
但是是通过指针来访问。我无法知道该结构的细节。
请问在这种情况下如何构造一个指针来接受该结构呢 ?
.h 文件中关于 该结构的定义如下:
/*
* public types
*/
typedef struct UdbEntity_ *UdbEntity;
关于该结构的使用的API demo如下:
1 static void reportAllEntities () {
2 UdbEntity *ents;
3 int entsSize;
4 int i;
5
6 udbListEntity(&ents;, &entsSize;); 7 printf ("\nEntity Name (kind)\n");
8 for (i=0; ihttp://python.cn/pipermail/python-chinese/attachments/20070401/69271714/attachment.html
Zeuux © 2025
京ICP备05028076号