Multilingual user interface Menu, GLCD and LPC1769

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Multilingual user interface Menu, GLCD and LPC1769

1,043 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by drvrh on Wed Jul 08 22:28:10 MST 2015
Hello

I would like create multilingual interface with menu.

But I don't have idea how to do it.

I some think, and best solve for this is maybe one list with word sorted by lagnuage in main program is one statement who set language and call word from .h file with set language.

Maybe do you have any ideas with example.

标签 (1)
0 项奖励
回复
2 回复数

1,020 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by TheFallGuy on Thu Jul 09 02:37:18 MST 2015
How about learning C?

You are trying to initialise an array of characters with an array of POINTERS to characters. So, use

const unsigned char *word[] = {
"menu", "mani", "manual", "rocno"
};

0 项奖励
回复

1,020 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by drvrh on Thu Jul 09 01:14:59 MST 2015
Hello,

now I wouldl ike write array with words and I have:

const unsigned char word[] = {
       "menu", "mani", "manual", "rocno"
};

I get some error.

(near initialization for 'word')
...
0 项奖励
回复