您的位置:首页 > 产品设计 > UI/UE

a value of type "const struct Menu * "cannot be assigned to an entity of type "struct Menu"

2016-03-25 19:38 766 查看
struct Menu

{

u8 **Text;

u8 TextNum;

void* (*Action)();

};

struct Menu * BarMenu;

#define MenuWhat(n)  {(u8 **)n,(sizeof(n)/sizeof(u8 *)),0}

const struct Menu MenuFunc[]=

{

MenuWhat(FuncItemCN),

MenuWhat(FuncItemEN),

};

u8 * const FuncItemCN[]=

{

{"读出数据“},

{”背光控制“},

{”出厂设置“},

{"修改密码”},

};

u8 * const FuncItemEN[]=

{

{"Read Data"},

{"BackLight"},

{"Factory Set"},

{"Change CODE"}

};

BarMenu = &MenuFunc[language];

BarMenu = (struct Menu *)&MenuFunc[language];
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: