阅读背景:

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 = m_w



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: