Originally posted by chinaren12 at 2005-12-27 10:13:
我现在编写了一个用gdisk自动分区的程序.程序中所用汉字为加载ucdos后输入的....
在qbasic中显示汉字的问题BT.EXE和BTE.COM--VTHZMK.COM的前身(虽然不是同一人设计的)中就已经解决,此处再说几句。
VTHZMK生成的.EXE程序是替换VGA字符集字模数据的汉字字模载入模块,不负责显示,但它替换成功后,用一切字符显示办法都能显示汉字字形,DOS/BIOS功能调用、直接写视频缓冲等都可以,只要是在文本屏非汉字显示状态就可以。所以批处理中用ECHO、QBasic中用PRINT、CONFIG.SYS中用ECHO.SYS等就是最直接简单的显示方法。
要载入字模,最直接的办法是DOS下运行.EXE、CONFIG.SYS中DEVICE=xxxx.EXE作设备载入、QBasic中SHELL "xxxx.EXE"等。如果你知道程序的原理,你可以全部用QBasic函数和语句直接载入字模。其实也不难。
总结一下:
QBasic载入字模--
SHELL "xxxx.EXE"
QBasic显示字模--
PRINT "假设这是在.NEW中自动生成的相应的新内码汉字串,绝对不能在WINDOWS下编辑!!!"
做出的软件中请申明一下VTHZMK.COM所起的作用。OK?
Last edited by 本是 on 2005-12-27 at 13:10 ]
Originally posted by chinaren12 at 2005-12-27 10:13:
I have now written a program that automatically partitions using gdisk. The Chinese characters used in the program are input after loading ucdos....
The issue of displaying Chinese characters in QBasic was already resolved in BT.EXE and BTE.COM - predecessors of VTHZMK.COM (although not designed by the same person). Let's say a few words here.
The.EXE program generated by VTHZMK is a Chinese character font loading module that replaces the font data of the VGA character set, and it is not responsible for display. But after a successful replacement, Chinese character shapes can be displayed using all character display methods, such as DOS/BIOS function calls, directly writing to the video buffer, etc., as long as it is in the non-Chinese display state on the text screen. So using ECHO in batch processing, PRINT in QBasic, ECHO.SYS in CONFIG.SYS, etc., are the most direct and simple display methods.
The most direct way to load the font is to run.EXE under DOS, DEVICE=xxxx.EXE in CONFIG.SYS for device loading, SHELL "xxxx.EXE" in QBasic, etc. If you know the principle of the program, you can directly load the font using QBasic functions and statements. Actually, it's not difficult.
In summary:
Loading font in QBasic -
SHELL "xxxx.EXE"
Displaying font in QBasic -
PRINT "Assume this is the corresponding new internal code Chinese character string automatically generated in.NEW, and it must not be edited under WINDOWS!!!"
Please state the role of VTHZMK.COM in the software you make. OK?
Last edited by 本是 on 2005-12-27 at 13:10 ]