I searched online, and there are almost no Chinese tutorials on the use of Wbat. The ones available are just Chinese versions of English demos, not dedicated usage tutorials. After struggling through the Chinese汉化 demonstrations by Wang Xiaoyun and Hnfeng, I decided to write a quick start guide myself.
I wrote part of it first, just some introductions and examples of commands and syntax. I'll write about layout files, batch files, and their coordination later, and I'll post as much as I write.
I hope it's useful to everyone.
Originally, I wanted to upload it to the upload section, but it was too slow and didn't go through at all.
I simply uploaded it as an attachment in the post.
After downloading and extracting, run Study.bat in the DOS window. You can also double-click study.bat directly under Windows.
I tried again, and there seems to be no garbled code... Of course, the parts covered by the BOX and appearing as half-Chinese characters are definitely garbled. But I found another bug.
If you follow the order to view the examples, there will be no problem. If you view example 11 without having seen example 9 before, the output of example 11 will be problematic. After having seen example 9, viewing example 11 will be fine.
The reason is that in the batch study.bat, the cursor is operated at example 9. And example 11 is debugging after the cursor operation. If a command to operate the cursor (wbat cursor 25) is added at the beginning of example 11, there will be no problem...
This fully illustrates what issue? The importance of variable assignment and immediate variable release!
If you have a good habit, initialize variables at the beginning of each subroutine and release variables at the end (except for variables passed as parameters), then this kind of problem won't occur.
[ Last edited by ko20010214 on 2008-10-18 at 03:56 ]
I wrote part of it first, just some introductions and examples of commands and syntax. I'll write about layout files, batch files, and their coordination later, and I'll post as much as I write.
I hope it's useful to everyone.
Originally, I wanted to upload it to the upload section, but it was too slow and didn't go through at all.
I simply uploaded it as an attachment in the post.
After downloading and extracting, run Study.bat in the DOS window. You can also double-click study.bat directly under Windows.
I tried again, and there seems to be no garbled code... Of course, the parts covered by the BOX and appearing as half-Chinese characters are definitely garbled. But I found another bug.
If you follow the order to view the examples, there will be no problem. If you view example 11 without having seen example 9 before, the output of example 11 will be problematic. After having seen example 9, viewing example 11 will be fine.
The reason is that in the batch study.bat, the cursor is operated at example 9. And example 11 is debugging after the cursor operation. If a command to operate the cursor (wbat cursor 25) is added at the beginning of example 11, there will be no problem...
This fully illustrates what issue? The importance of variable assignment and immediate variable release!
If you have a good habit, initialize variables at the beginning of each subroutine and release variables at the end (except for variables passed as parameters), then this kind of problem won't occur.
[ Last edited by ko20010214 on 2008-10-18 at 03:56 ]
Recent Ratings for This Post
( 5 in total)
Click for details
| Rater | Score | Time |
|---|---|---|
| pusofalse | +11 | 2008-10-17 19:13 |
| BC | +4 | 2008-10-17 20:26 |
| lianjiang2004 | +6 | 2008-10-20 16:31 |
| Jneny | +2 | 2009-04-18 05:58 |
| sl543001 | +2 | 2010-01-25 19:39 |
Attachments
ko20010214
=================================
大功告成,打个Kiss!
ko20010214@MSN.com
神州优雅Q300C
Intel CeleronM 370处理器 | 256MbDDR内存
40G硬盘 | USB2.0 | IEEE 1394
13.3 ' WXGA 宽屏(16:10) | COMBO光驱
10/100M网卡 | 四合一读卡器
=================================
大功告成,打个Kiss!
ko20010214@MSN.com
神州优雅Q300C
Intel CeleronM 370处理器 | 256MbDDR内存
40G硬盘 | USB2.0 | IEEE 1394
13.3 ' WXGA 宽屏(16:10) | COMBO光驱
10/100M网卡 | 四合一读卡器
