全國最多中醫師線上諮詢網站-台灣中醫網
發文 回覆 瀏覽次數:1439
推到 Plurk!
推到 Facebook!

Solution of using non-unicode delphi/bcb program on English version OS

 
Coffee
版主


發表:31
回覆:878
積分:561
註冊:2006-11-15

發送簡訊給我
#1 引用回覆 回覆 發表時間:2012-12-17 16:15:32 IP:220.130.xxx.xxx 訂閱
    When your program need to be deployed to pure English OS(Windows XP or above, not sure for W2K, tested on WinXP/Win7) and facing the problem and find that copy/paste Chinese characters(CHT/CHS or non-Western codepage) function will produce abnormal words, you can use Windows API -  ActivateKeyboardLayout to change the application keyboard layout to the language you need to use but switch the input method to English for user that they can change their IME as they need.

For Windows 7, I've tested and it works fine but some ppl said they need to change IME by other ways, you can google it by the API name.

因為沒有酒,這篇宣告為CC 2.0(攤手)
------
不論是否我發的文,在能力範圍皆很樂意為大家回答問題。
為了補我的能力不足之處,以及讓答案可以被重複的使用,希望大家能儘量以公開的方式問問題。
在引述到我的文時自然會儘量替各位想辦法,謝謝大家!
編輯記錄
Coffee 重新編輯於 2012-12-17 01:16:34, 註解 無‧
Coffee 重新編輯於 2013-04-05 17:11:56, 註解 無‧
aftcast
站務副站長


發表:81
回覆:1485
積分:1763
註冊:2002-11-21

發送簡訊給我
#2 引用回覆 回覆 發表時間:2012-12-17 18:04:33 IP:114.32.xxx.xxx 訂閱
看懂的人答右!   :p

===================引 用 Coffee 文 章===================
When your program need to be deployed to pure English OS(Windows XP or above, not sure for W2K, tested on WinXP/Win7) and facing the problem and find that copy/paste Chinese characters(CHT/CHS or non-Western codepage) function will produce abnormal words, you can use Windows API - ActivateKeyboardLayout to change the application keyboard layout to the language you need to use but switch the input method to English for user that they can change their IME as they need.

For Windows 7, I've tested and it works fine but some ppl said they need to change IME by other ways, you can google it by the API name.


------


蕭沖
--All ideas are worthless unless implemented--

C++ Builder Delphi Taiwan G+ 社群
http://bit.ly/cbtaiwan
Coffee
版主


發表:31
回覆:878
積分:561
註冊:2006-11-15

發送簡訊給我
#3 引用回覆 回覆 發表時間:2012-12-17 18:07:16 IP:220.130.xxx.xxx 訂閱
我就是知道樓上的會吐我槽所以才用破爛的英文寫,要怪就怪樓上的(跑)
喔對了,既然樓上的都答右了,那這篇就不干我的事了(茶)

===================引 用 aftcast 文 章===================
看懂的人答右! :p

===================引 用 Coffee 文 章===================
When your program need to be deployed to pure English OS(Windows XP or above, not sure for W2K, tested on WinXP/Win7) and facing the problem and find that copy/paste Chinese characters(CHT/CHS or non-Western codepage) function will produce abnormal words, you can use Windows API - ActivateKeyboardLayout to change the application keyboard layout to the language you need to use but switch the input method to English for user that they can change their IME as they need.

For Windows 7, I've tested and it works fine but some ppl said they need to change IME by other ways, you can google it by the API name.


------
不論是否我發的文,在能力範圍皆很樂意為大家回答問題。
為了補我的能力不足之處,以及讓答案可以被重複的使用,希望大家能儘量以公開的方式問問題。
在引述到我的文時自然會儘量替各位想辦法,謝謝大家!
編輯記錄
Coffee 重新編輯於 2012-12-17 03:12:26, 註解 無‧
aftcast
站務副站長


發表:81
回覆:1485
積分:1763
註冊:2002-11-21

發送簡訊給我
#4 引用回覆 回覆 發表時間:2012-12-17 18:16:04 IP:114.32.xxx.xxx 訂閱
哈,都是兄弟,怎會吐你啦?

是說,
1/ 遇到的人應該少
2/ 你只講最重點的地方,其他普通重點的都沒說,比如需不需要language pack? 比如,在什麼點上下那個api,又,為何你講ime可以讓user依需要切換?
3/ 程式人員一般都較熟程式語言,不熟口語說明文,程式一出,理解就極快。沒有的話就要字裡行間去了解。

你的英文沒問題,別誤會我吐你英文喔。

啊這篇我是當然有些了解,因為曾一起找問題的咩,是吧? 只是最後你找到了最終解,是吧?

: )

===================引 用 Coffee 文 章===================
我就是知道樓上的會吐我槽所以才用破爛的英文寫,要怪就怪樓上的(跑)

===================引 用 aftcast 文 章===================
看懂的人答右! :p

===================引 用 Coffee 文 章===================
When your program need to be deployed to pure English OS(Windows XP or above, not sure for W2K, tested on WinXP/Win7) and facing the problem and find that copy/paste Chinese characters(CHT/CHS or non-Western codepage) function will produce abnormal words, you can use Windows API - ActivateKeyboardLayout to change the application keyboard layout to the language you need to use but switch the input method to English for user that they can change their IME as they need.

For Windows 7, I've tested and it works fine but some ppl said they need to change IME by other ways, you can google it by the API name.


------


蕭沖
--All ideas are worthless unless implemented--

C++ Builder Delphi Taiwan G+ 社群
http://bit.ly/cbtaiwan
系統時間:2024-07-31 1:52:48
聯絡我們 | Delphi K.Top討論版
本站聲明
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。
2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。
3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇!