Managed Class member varible from managed struct

老子叫甜甜 提交于 2019-12-25 05:35:44

问题


I need help in making member variable for a managed class of managed struct ... i tried to fix this but the error didn't disappear till i made that class non managed by removing "ref" . you may see this picture to see the class and the struct http://tinypic.com/view.php?pic=149mgie&s=8

public ref struct RectResult
{
    int x;
    int y;
    int width;
    int height;
};

public ref  class GullotinePackedBin
{
private:
    int width;
    int height;
    vector<RectResult> packedRectangles;
}

来源:https://stackoverflow.com/questions/30620421/managed-class-member-varible-from-managed-struct

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!