China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-06-24 08:56
中国DOS联盟论坛 » DOS开发编程 & 发展交流 (开发室) » The Terminator of DOS Interface Development View 94,228 Replies 290
Floor 151 Posted 2006-10-23 21:54 ·  中国 云南 红河哈尼族彝族自治州 电信
中级用户
★★
Credits 478
Posts 132
Joined 2003-07-02 00:00
22-year member
UID 6296
Gender Male
Status Offline
Originally posted by profree at 2006-10-11 10:12 PM:
firstsail:
Haven't you got back from vacation yet? Haven't updated winsail for a long time
Floor 152 Posted 2006-10-25 08:23 ·  中国 广东 深圳 电信
高级用户
★★
Credits 668
Posts 295
Joined 2005-07-26 00:00
20-year member
UID 41110
Gender Male
From 广东深圳
Status Offline
WinSail V2.0 has been re-uploaded!

1: Added support for the "numeric keypad" control

Document: Interface Control Class_CNumberKeyboard Numeric Keypad Control Detailed Design.doc

Class name: CNumberKeyboard

Methods: CreateObject();----Create the control
SetScale(); ----Set the magnification of the control, default is 1x

Demonstration module
(1) Demonstration location: There is a "Numeric Keypad Demonstration" icon on the desktop of the sail3000 project
(2) Program name: Num_Demo.Cpp




Floor 153 Posted 2006-10-27 02:30 ·  中国 广东 深圳 电信
高级用户
★★
Credits 668
Posts 295
Joined 2005-07-26 00:00
20-year member
UID 41110
Gender Male
From 广东深圳
Status Offline
WinSail V2.0 has been updated

1: Added "Chinese Pinyin Input Method".

(1) Switch key --- Ctrl + Space combination key

(2) Requirement for the window --- The upper-left corner coordinates (left, top) of the window control
left >= 0 and top >= 0

(3) The input method code table file is "Sail.Ime", which can be found in the sail3000 directory
Contains more than 10,000 Chinese characters (including polyphonic characters). The file size is about 28K bytes.


Floor 154 Posted 2006-10-27 21:37 ·  中国 云南 红河哈尼族彝族自治州 个旧市 电信
中级用户
★★
Credits 478
Posts 132
Joined 2003-07-02 00:00
22-year member
UID 6296
Gender Male
Status Offline
Can we add the Wubi input method?
Floor 155 Posted 2006-10-27 21:45 ·  中国 云南 红河哈尼族彝族自治州 个旧市 电信
中级用户
★★
Credits 478
Posts 132
Joined 2003-07-02 00:00
22-year member
UID 6296
Gender Male
Status Offline
Just tested winsail and it's getting more and more beautiful, :)

另外 ask a question:
I want to write a login dialog by myself, and display the user name in the form of a drop-down list. Can I customize my own user name and password files?
Floor 156 Posted 2006-10-28 04:14 ·  中国 广东 深圳 宝安区 电信
高级用户
★★
Credits 668
Posts 295
Joined 2005-07-26 00:00
20-year member
UID 41110
Gender Male
From 广东深圳
Status Offline
Originally posted by profree at 2006-10-27 21:45:
Another question:
I want to write a login dialog by myself, and the user name is displayed in a drop-down list, and I can customize my own user name and password...


Completely possible!

The user and password files are not part of WinSail V2.0; they are just a common application based on WinSail V2.0!!!

One thing to note: The Sail3000 project is not WinSail; it is just an application based on WinSail V2.0!


The following three variables are defined internally in WinSail V2.0:

extern BOOL bAfxManager; //System administrator flag, default is FALSE
extern char strAfxUserName; //User name, cannot exceed 15 characters, default is "empty"
extern char strAfxPassword; //Password, cannot exceed 11 characters, default is "empty"


It is strongly recommended that after the user-defined user box logs in, you will:

(1) Copy the user name to the strAfxUserName variable
(2) Copy the password to the strAfxPassword variable
(3) Set the user permission to the bAfxManager variable
Floor 157 Posted 2006-10-29 04:05 ·  中国 广东 深圳 宝安区 电信
高级用户
★★
Credits 668
Posts 295
Joined 2005-07-26 00:00
20-year member
UID 41110
Gender Male
From 广东深圳
Status Offline
1: To use the Chinese input method of WinSail V2.0, in the main program, the IME manager must be registered!

int main(int argc, char** argv)
{
::AfxRegisterIme(::GlobalImeManager); // Can be placed anywhere, but must be before using the input method!

....


return(0);
}

The purpose of such design is that most "embedded applications" do not need "Chinese input", so this can save about 4K bytes of the Exe file size.

2: The input method activation key is the "Ctrl + Space" combination key.
The input method switching key is the "Ctrl + Right Shift" combination key.

Currently, only "single character" input is supported, and "phrase" and "association" input are not supported.

3: The input method description is in the field of the "Config.sys" file. The syntax is



Ime1 = File name 1 ; Note: Can contain directory
Ime2 = File name 2 ; Note: Can contain directory
...


The special thing is "location input method", which does not need to be described, and the system automatically loads it.

4: In the Sail3000 directory, three input methods are already supported
(1) Pinyin -- The input method code file is "Ime\winqp.ime"
(2) Wubi -- The input method code file is "Ime\winwb98.ime"
(3) Location -- No input method code file is needed, the system automatically loads it.

5: The code table file structure is divided into four parts

The first part: file header, IME_HEAD
The second part: hash table, IME_HALFTABLE, indicating the position index of the first character in the code table.
The third part: code table, arranged from small to large, indicating the position in the code table and the number of symbols with the same root for each code.
The fourth part: code table, codes with smaller values come first; codes with the same value are arranged in order.

6: Copy "http://www.firstsail.com.cn/download/WinSail%20V2.0.rar" to the address bar, and you can download WinSail V2.0.
The demo program is in the Sail300 directory, execute the "a.bat" file or the "Sail2000.exe" file.

[ Last edited by firstsail on 2006-10-29 at 11:52 PM ]
Floor 158 Posted 2006-11-01 09:34 ·  中国 浙江 嘉兴 海宁市 电信
初级用户
Credits 118
Posts 10
Joined 2004-06-15 00:00
22-year member
UID 26789
Gender Male
Status Offline
Does Teacher Guo have an open-source plan?
Floor 159 Posted 2006-11-01 09:51 ·  中国 浙江 嘉兴 海宁市 电信
初级用户
Credits 118
Posts 10
Joined 2004-06-15 00:00
22-year member
UID 26789
Gender Male
Status Offline
Will the mature version be charged if it is not open source?
If it is charged, what kind of technical support will be provided?

I had this question when I first saw winsail more than a year ago, so later I chose "DJGPP + ALLEGRO + DZCOMM".

I wonder how many cases of using winsail there are for the baby-pc board? I am also considering using theirs.
Floor 160 Posted 2006-11-07 08:21 ·  中国 广东 深圳 罗湖区 电信
高级用户
★★
Credits 668
Posts 295
Joined 2005-07-26 00:00
20-year member
UID 41110
Gender Male
From 广东深圳
Status Offline
WinSail V2.0 has been updated [2006-11-06 10:00]

Strengthened socket programming based on network cards, especially the UDP protocol in TCP/IP!
Floor 161 Posted 2006-11-07 23:00 ·  中国 江苏 徐州 电信
新手上路
Credits 2
Posts 1
Joined 2006-10-28 05:06
19-year member
UID 68600
Gender Male
Status Offline
look at; have a look
Floor 162 Posted 2006-11-11 05:05 ·  中国 广东 深圳 宝安区 电信
高级用户
★★
Credits 668
Posts 295
Joined 2005-07-26 00:00
20-year member
UID 41110
Gender Male
From 广东深圳
Status Offline
I want to be grateful to the DOS Union!

Today, I saw on "http://zhenlove.com.cn/cndos/newdos/dosuse.htm" how to configure the c:\config.sys file. With the following configuration, the available memory of DOS can reach 700K!

device=c:\windows\himem.sys/testmem:off
device=c:\windows\emm386.exe noems novcpi
device=c:\windows\ifshlp.sys

dos=high,umb,auto
stacks=12,256
files=30


numlock=off
Floor 163 Posted 2007-02-27 09:35 ·  中国 广东 深圳 宝安区 电信
新手上路
Credits 18
Posts 9
Joined 2007-02-22 06:21
19-year member
UID 79934
Gender Male
Status Offline
Great! Support
Floor 164 Posted 2007-02-27 10:49 ·  中国 浙江 台州 温岭市 电信
高级用户
★★
DOS学徒
Credits 526
Posts 252
Joined 2007-02-12 05:35
19-year member
UID 79286
Gender Male
Status Offline
顶(在网络语境中表示赞同、支持等意思,此处就是简单的“ding”)
Floor 165 Posted 2007-03-05 23:56 ·  中国 广东 佛山 南海区 电信
新手上路
Credits 8
Posts 4
Joined 2007-02-27 13:53
19-year member
UID 80321
Gender Male
Status Offline
Good stuff
‹ Prev 1 9 10 11 12 13 20 Next ›
Forum Jump: