python调用c++返回带成员指针的类指针

这个是OK的:

class Rtmp_tool {
public:
    int m_width;
    AVCodecContext * c;

};



指针的用法如下:
Rtmp_tool * rtmp_tool;
rtmp_tool = new Rtmp_tool();
rtmp_tool->m_width = 60;
rtmp_tool->c = c;
return rtmp_tool;


猜你喜欢

转载自blog.csdn.net/jacke121/article/details/80291941