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:59
中国DOS联盟论坛 » DOS开发编程 & 发展交流 (开发室) » The Terminator of DOS Interface Development View 94,229 Replies 290
Floor 46 Posted 2005-04-20 00:00 ·  中国 上海 浦东新区 电信
初级用户
Credits 117
Posts 6
Joined 2005-04-15 00:00
21-year member
UID 38211
Gender Male
Status Offline
"The design purpose of WinSail is for industrial use. In the application of the power system, this kernel has completed 95% of its work. In the application of CNC machine tools, this kernel has completed 75% of its work. In the application of smart instruments, this kernel has completed 80% of its work." Then, Brother Guo, which specific contents are included in the above-mentioned application kernels? Can you introduce them in detail!!! Thank you!!!!!
Floor 47 Posted 2005-04-21 00:00 ·  中国 广东 深圳 电信
中级用户
Credits 225
Posts 39
Joined 2004-10-06 00:00
21-year member
UID 32162
Gender Male
Status Offline
1: For the interface, it supports VGA forms with resolutions of 320*200*256, 640*480*16, 800*600*256 colors, and LCD screen forms with a resolution of 320*240*2 colors for the SED1335 controller, and supports various Windows interface factors. The dialog box can be drawn well in VC++, and can be converted into WinSail's source code or script files through the conversion program provided by this system. It is not difficult to develop the interface.
2: The "oscilloscope" control provided is powerful, especially supporting "multiple vertical coordinates", which can meet the display needs of most dynamic "waveforms".
3: The power system is weak current controlling strong current, and there are many output components, such as relays, solenoid valves, indicator lights, motors, etc. The "object-oriented I/O control" interface function of WinSail is powerful. The hardware can adopt "I/O cards, PLCs, network cards, COM communication ports", but the software interface is the same, and the difference is in the different configuration files. For example:
ExecuteRelay("K1, K2, ~K3, 300, SSR1, 20", pRegister, TRUE, TRUE);
means:
Close mechanical relays K1 and K2, open mechanical relay K3, wait for 300ms, then close solid-state relay SSR1, wait for 20ms.

4: The mathematical simulation package provided by the system can simulate "sine waves, square waves, shock waves, triangular waves", etc. The superposition of these waveforms can realize the actual situation of most external signals, which is a rare tool for simulating the real world.
5: The discrete signal FIR filtering function provided by WinSail - "low-pass filter, high-pass filter, band-pass filter, band-stop filter" coefficient generation and filtering program is a means for all industries such as "electrical, electronic, automation, instrumentation" to eliminate external interference. If your product does not have this function yet, then your product is just a student experiment product.
6: The TCP/IP protocol supported by WinSail has a programming interface basically the same as "Win9x". If your product supports network card communication, you can imagine how much added value it can bring to you!!!
7: WinSail is just a secondary development platform, and other things will not be described more here.
Floor 48 Posted 2005-05-12 00:00 ·  中国 四川 眉山 电信
中级用户
★★
Credits 355
Posts 99
Joined 2003-01-06 00:00
23-year member
UID 690
Gender Male
Status Offline
So fierce! I'm really happy that DOS still has such strong vitality now, and there are still so many friends to improve it together.
Floor 49 Posted 2005-07-17 04:13 ·  中国 广东 广州 电信
初级用户
Credits 139
Posts 18
Joined 2003-10-27 00:00
22-year member
UID 11979
Gender Male
Status Offline
Will the source code be made public? It's a very rare software package. Can it be used freely? Is there any copyright issue?
Floor 50 Posted 2005-07-23 20:53 ·  中国 湖南 娄底 电信
新手上路
Credits 10
Posts 4
Joined 2005-07-23 10:01
20-year member
UID 40949
Gender Male
Status Offline
Admire the interface development under DOS. It costs money. How to promote it?
Floor 51 Posted 2005-07-27 13:29 ·  美国 ThePlanet机房
初级用户
Credits 41
Posts 4
Joined 2005-07-27 13:10
20-year member
UID 41101
Gender Male
Status Offline
WinSail is really great! Thanks a lot,楼主 big shot! May I ask what's the difference between this WinSail and DJGPP? Is this used to develop 16-bit DOS programs or 32-bit DOS programs? Thanks
Floor 52 Posted 2005-07-28 15:23 ·  中国 广东 深圳 电信
高级用户
★★
Credits 668
Posts 295
Joined 2005-07-26 00:00
20-year member
UID 41110
Gender Male
From 广东深圳
Status Offline
DJGPP: Just an IDE development tool, and the relationship with BC31/BC45 is like that between VC++ and Dephi.
WinSail: A programming library and application development tool, and the relationship with BC31 and BC45 is similar to the relationship between DLL, OCX and VC++.

Currently, WinSail has developed to version V2.0. It includes the following major categories of functions:

(1) Windows - like GUI.

(2) Display modes include VESA mode, TFT mode, LCD mode.

(3) Multitasking.

(4) TCP/IP protocol stack, based on Packet Driver driver, all network data packets are in extended memory, not occupying conventional memory.

(5) Extended memory supports "physical extended memory", "disk - emulated extended memory", "expanded memory card".

(6) Support for "text registry access" function.

(7) Extended mathematical function library.

(8) Support for other common functions.
Floor 53 Posted 2005-08-04 09:15 ·  中国 北京 移动
新手上路
Credits 5
Posts 2
Joined 2005-08-01 08:40
20-year member
UID 41242
Status Offline
Prompt: error with graphics.h, there is a problem with gdi, may I ask boss, what should I do?
Floor 54 Posted 2005-08-04 09:44 ·  中国 广东 深圳 电信
高级用户
★★
Credits 668
Posts 295
Joined 2005-07-26 00:00
20-year member
UID 41110
Gender Male
From 广东深圳
Status Offline
Visual C++ does not support graphics.h, that is, Visual C++ only supports programs running under Windows.

WinSail V2.0 is for developing pure DOS programs. You should install Borland C++ 3.1 as the development tool, or install Borland C++ 4.5 as the development tool.
Floor 55 Posted 2005-08-12 16:25 ·  中国 香港
银牌会员
★★★
阿林
Credits 1,410
Posts 497
Joined 2004-06-28 00:00
21-year member
UID 27551
Gender Male
From 九龍,香港
Status Offline
Originally posted by Guo Heng at 2004-11-24 12:00 AM:
I have developed a software called "WINSail" by myself. It is a completely free set of software. The complete "library files", "header files", "instructions", and "source code" can be found at "www.FirstSail ...


What kind of free is it? GNU? Public Domain?

I can't find the download place...
我 的 網 站 - http://optimizr.dyndns.org
Floor 56 Posted 2005-08-15 14:15 ·  中国 广东 深圳 宝安区 电信
高级用户
★★
Credits 668
Posts 295
Joined 2005-07-26 00:00
20-year member
UID 41110
Gender Male
From 广东深圳
Status Offline
Webpage: http://www.firstsail.b2b.cn
Position: In the upper left corner of the homepage, there is "Product List -> Software Products -> WinSail V2.0 Embedded System -> Attachments -> WinSail Programming Library Download"
Floor 57 Posted 2005-08-15 14:40 ·  中国 广东 深圳 宝安区 电信
高级用户
★★
Credits 668
Posts 295
Joined 2005-07-26 00:00
20-year member
UID 41110
Gender Male
From 广东深圳
Status Offline
Often need to perform dynamic waveform display on the data collected from the AD conversion card, using the following algorithm:

(1) Assume that the waveform display color is WHITE, the background color is BLACK, and the pane is DARKGRAY color.
(2) Define a boolean variable BOOL bDisplay = FALSE
(3) If bDisplay = TRUE, XOR the saved sampling data with WHITE color for drawing, and set bDisplay = FALSE
(4) Sample data from the data sampling card
(5) XOR the sampling data with WHITE color for drawing, and set bDisplay = TRUE
(6) Save the sampling data
(7) Repeat steps (3) ~ (6)

The following are the disadvantages of using the above algorithm.
(1) When the number of waveform data points is larger than the drawing width, compression display is required.
(2) After compression, multiple points are XOR-drawn at the same position, resulting in the waveform not being clear enough
(3) After compression, multiple points are XOR-drawn at the same position, resulting in the loss of high-frequency components of the waveform.

Currently, the above algorithm is solved as follows:
(1) Assume that the waveform display color is WHITE, the background color is BLACK, and the pane is DARKGRAY color.
(2) Define a boolean variable BOOL bDisplay = FALSE
(3) If bDisplay = TRUE, directly draw the saved sampling data with BLACK color, and redraw the pane with DARKGRAY color, and set bDisplay = FALSE
(4) Sample data
(5) Directly draw the sampling data with WHITE color, and set bDisplay = TRUE
(6) Save the sampling data
(7) Repeat steps (3) ~ (6)

Fellow DOS enthusiasts, is there a better solution???
Floor 58 Posted 2005-08-17 10:23 ·  中国 香港
银牌会员
★★★
阿林
Credits 1,410
Posts 497
Joined 2004-06-28 00:00
21-year member
UID 27551
Gender Male
From 九龍,香港
Status Offline
Originally posted by firstsail at 2005-8-15 02:15 PM:
Webpage: http://www.firstsail.b2b.cn
Location: On the homepage, in the upper left corner, there is "Product List -> Software Products -> WinSail V2.0 Embedded System -> Attachments -> Download WinSail Programming Library"


Thank you! I downloaded it, it's really amazing.

But, are there any restrictions on application, for example, is the free version only limited to personal use, and do you need to pay for a license for commercial use...

Because the program can be developed on Windows and run on WinSail, it's really time-saving and effort-saving...
我 的 網 站 - http://optimizr.dyndns.org
Floor 59 Posted 2005-08-23 15:46 ·  中国 广东 深圳 电信
高级用户
★★
Credits 668
Posts 295
Joined 2005-07-26 00:00
20-year member
UID 41110
Gender Male
From 广东深圳
Status Offline
### Serial Number Device Mode (Macro) Mode (Value) Description
1 VGA = 9 VGAHI 2 640*480*16 colors

2 VESA = 11 VESA800_600_16 = 0 800*600*16 colors (not supported for the time being)
VESA640_400_256 = 1 640*400*256 colors
VESA640_480_256 = 2 640*480*16 colors (not supported for the time being)
VESA800_600_16_2 = 3 800*600*16 colors (not supported for the time being)
VESA800_600_256 = 4 800*600*256 colors
VESA1024_768_16 = 5 1024*768*16 colors (not supported for the time being)
VESA1024_768_256 = 6 1024*768*256 colors
VESA1280_1024_16 = 7 1280*1024*16 colors (not supported for the time being)
VESA1280_1024_256 = 8 1280*1024*256 colors
VESA320_200_256 = 9 320*200*256 colors
VESA320_240_256 = 10 320*240*256 colors

3 SED1335VGA = 13 SED1335VGA_320_240_1 = 0 320*240*1 color
SED1335VGA_640_480_1 = 1 648*480*1 color (not supported for the time being)
SED1335VGA_800_600_1 = 2 600*800*1 color (not supported for the time being)
SED1335VGA_1024_768_1 = 3 1024*768*1 color (not supported for the time being)

4 TFTVGA = 14 TFTVGA_320_240_256 = 0 320*240*256 colors (not supported for the time being)
TFTVGA_640_480_256 = 1 640*480*256 colors
TFTVGA_800_600_256 = 2 800*600*256 colors
TFTVGA_1024_768_256 = 3 1024*768*256 colors (not supported for the time being)
Remarks

(1) Other simulated resolutions * 256Color. You need to modify the values of the global variables nAfxScreenWidth and nAfxScreenHeight, which can only be reduced, not increased.
(2) The value of Device is configured in the "Device" key value of the [Display] section in the Config.Sys file, which is of integer type!
(3) The value of Mode is configured in the "Mode" key value of the [Display] section in the Config.Sys file, which is of integer type!
(4) The monochrome simulation is configured in the "Mono" key value of the [Display] section in the Config.Sys file, which is of boolean type!
(5) For users using the PCM-3386 embedded motherboard, the "Pcm3386" key value in the [Display] section must be set to "TRUE"!
(6) For users using the PCM-3486 embedded motherboard, the "Pcm3486" key value in the [Display] section must be set to "TRUE"!

The configuration file is "Config.Sys", as follows:
[Display]
Device = 9; device number
Mode = 2 ; mode number
Mono = True ; monochrome/color display control
Pcm3386 = False ; PCM-3386 embedded motherboard user
Pcm3486 = False ; PCM-3486 embedded motherboard user
Floor 60 Posted 2005-10-31 16:57 ·  中国 山西 临汾 联通
中级用户
★★
Credits 241
Posts 131
Joined 2005-09-28 19:01
20-year member
UID 42920
Gender Male
Status Offline
Can't download, and it says "negotiable price". I don't plan to buy, so I think the楼主 is a scammer! Just here to advertise!
房东说:这娃是个好孩子!
Forum Jump: