在csdn上閑逛,看到一個這樣的問題:如何在PPC上實現多語言的程序列表中的名稱在編譯時自動切換 這個曾經讓我相當苦惱,看到這個自然不會放過。
一位牛人很簡單的回答: 參考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竟然有多語言的例子,讓我相當的驚訝! 學習了一下,比我自己的方法簡單很多,看來需要好好學習SDK中提供的例子。 這個例子會生成muihello.exe.0409.mui,這其實是一個DLL資源文件,有人說這是一種命名規則。在不同的平臺上就調用不同的資源,實現多語言。 在resfile.cpp文件中