2011年8月19日 星期五

三戰之 再用bcc(borland c)來製作harbour + hwgui utf8版之記錄

用bcc(borland c)來製作harbour + hwgui utf8版
(到底試幾次了? 你的肝站在你後面,它不火了但燒到剩灰盡了....)
2011-08-19 03:02開始記錄
bcc現成在\fq\bc55
d:\t
d:\t\h harbour svn checkout
d:\t\u hwgui svn checkout

**** 這是harbour ****
d:\t\h>set path=\fq\bc55\bin
d:\t\h>win-make
成功做成lib\win\bcc 85 files, bin\win\bcc 15 files

記得copy
d:\t\h>copy bin\win\bcc bin
d:\t\h>copy lib\win\bcc lib

**** 這是hwgui ****
d:\t\h>cd \t\u
d:\t\u>
makefile.bc
加入 -DUNICODE
加入 bc55的include
----------------------------------
CFLAGS = -DUNICODE .....
INCLUDE_DIR = include;$(HRB_DIR)\include;\fq\bc55\include
----------------------------------
記得設HB_PATH(全部大寫)
d:\t\u>SET HB_PATH=d:\s\h
d:\t\u>SET PATH=d:\fq\bc55\bin;%windir%;%windir%\system32
記得d:\fq\bc55\bin下的bcc32.cfg ilink.cfg要設定對,免得include error
d:\t\u>make_b32
完成 5個lib檔

**** hwgui make完成,開始測試前的準備動作 ****
接下來重頭戲,到samples去測試了
d:\t\u>cd samples
bld.bat
並修正如下:
set HRB_DIR=\t\h
set HWGUI_INSTALL=\t\u
(註:這裡不需要加-DUNICODE)
最前面加2行,最後面加2行(純為個人習慣)
if exist %1.exe del %1.exe
if exist %1.exe goto end

if exist %1.exe %1.exe
:end

**** 測試開始 (以下請都用 samples\bldjc.bat ,不要用各目錄的bld.bat )
d:\s\u\samples>cd hello
d:\s\u\samples\hello>copy hello.prg h.prg
d:\s\u\samples\hello>..\bldjc h
h.exe 完成後自動執行。
RichText/EditBox輸入中文也沒問題。big5/utf8OK,但值在那裡
Get 任何中文都不行
EditBox 可ansi-big5中文,不能unicode
加不加三個修正檔都一樣, utf8編碼的prg檔也沒問題
主要問題在於 GET 有{|v|if(v=nil,,=v)}
這一段沒有完成uft8
editbox 同 get都是hedit(),差別在這
而richedit()也沒code block。所以沒問題

沒有留言: