Multilingual user interface Menu, GLCD and LPC1769

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Multilingual user interface Menu, GLCD and LPC1769

1,829件の閲覧回数
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,806件の閲覧回数
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,806件の閲覧回数
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 件の賞賛
返信