在csdn上閑逛,看到一個(gè)這樣的問題:如何在PPC上實(shí)現(xiàn)多語言的程序列表中的名稱在編譯時(shí)自動(dòng)切換 這個(gè)曾經(jīng)讓我相當(dāng)苦惱,看到這個(gè)自然不會(huì)放過。
一位牛人很簡(jiǎn)單的回答: 參考MUIHello 例子: C:\Program Files\Windows CE Tools\wce500\Windows Mobile 5.0 Smartphone SDK\Samples\CPP\Win32\Muihello\app\app.sln C:\Program Files\Windows CE Tools\wce500\Windows Mobile 5.0 Smartphone SDK\Samples\CPP\Win32\Muihello\German_resfile\german_resfile.sln C:\Program Files\Windows CE Tools\wce500\Windows Mobile 5.0 Smartphone SDK\Samples\CPP\Win32\Muihello\Resfile\resfile.sln Samples竟然有多語言的例子,讓我相當(dāng)?shù)捏@訝! 學(xué)習(xí)了一下,比我自己的方法簡(jiǎn)單很多,看來需要好好學(xué)習(xí)SDK中提供的例子。 這個(gè)例子會(huì)生成muihello.exe.0409.mui,這其實(shí)是一個(gè)DLL資源文件,有人說這是一種命名規(guī)則。在不同的平臺(tái)上就調(diào)用不同的資源,實(shí)現(xiàn)多語言。 在resfile.cpp文件中