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-08-01 05:44
中国DOS联盟论坛 » DOS开发编程 & 发展交流 (开发室) » Requesting a DOS programming expert to develop a program! View 987 Replies 9
Original Poster Posted 2004-02-16 00:00 ·  中国 江西 抚州 电信
初级用户
Credits 123
Posts 20
Joined 2004-02-16 00:00
22-year member
UID 17547
Gender Male
Status Offline
I want to develop a program so that this EXE can make DOS unable to display 256-color pictures (including 265-color graphics inside DOS program EXEs) under DOS!

Is there any expert on the forum who can do this! Thanks
Floor 2 Posted 2004-02-16 00:00 ·  中国 江西 抚州 电信
初级用户
Credits 123
Posts 20
Joined 2004-02-16 00:00
22-year member
UID 17547
Gender Male
Status Offline
What should be done to prevent pictures from being displayed under pure DOS?

I tried in AUTOEXEC。BAT

methods like @echo off, ctty nul, and mode 40 to change the display mode,

but it still doesn't work, under DOS it can still normally display some pictures such as PCX and others!
Floor 3 Posted 2004-02-16 00:00 ·  中国 辽宁 朝阳 联通
铂金会员
★★★★
痴迷DOS者
Credits 5,798
Posts 1,924
Joined 2003-06-20 00:00
23-year member
UID 5583
Gender Male
From 金獅電腦軟體工作室
Status Offline
This is the first time I've heard the OP's request, quite fresh! I'll go back and experiment, then talk about it!
熟能生巧,巧能生精,一艺不精,终生无成,精亦求精,始有所成,臻于完美,永无止境!
金狮電腦軟體工作室愿竭诚为您服务!
QQ群:8393170(定期清理不发言者)
个人网站:http://www.520269.cn
电子邮件:doujiehui@vip.qq.com
微信公众号: doujiehui
Floor 4 Posted 2004-02-17 00:00 ·  中国 江西 抚州 电信
初级用户
Credits 123
Posts 20
Joined 2004-02-16 00:00
22-year member
UID 17547
Gender Male
Status Offline
I heard some assembly experts say that using code to make DOS support only character-mode display can achieve the goal!
Floor 5 Posted 2004-02-19 00:00 ·  中国 辽宁 沈阳 联通
铂金会员
★★★★
痴迷DOS者
Credits 5,798
Posts 1,924
Joined 2003-06-20 00:00
23-year member
UID 5583
Gender Male
From 金獅電腦軟體工作室
Status Offline
The following is quoted from youjiang at 2004-2-17 14:51:02:
I heard some assembly experts say that using code to make DOS support only character-mode display can achieve the goal!


This method seems not to work, a lot of software can automatically switch the screen display mode.
熟能生巧,巧能生精,一艺不精,终生无成,精亦求精,始有所成,臻于完美,永无止境!
金狮電腦軟體工作室愿竭诚为您服务!
QQ群:8393170(定期清理不发言者)
个人网站:http://www.520269.cn
电子邮件:doujiehui@vip.qq.com
微信公众号: doujiehui
Floor 6 Posted 2004-02-19 00:00 ·  中国 江西 抚州 电信
初级用户
Credits 123
Posts 20
Joined 2004-02-16 00:00
22-year member
UID 17547
Gender Male
Status Offline
The following is quoted from Kinglion at 2004-2-19 4:32:47:
The following is quoted from youjiang at 2004-2-17 14:51:02:
I heard some assembly experts say that using code to make DOS support only character-mode display can achieve the goal!


This method seems not to work, a lot of software can automatically switch the screen display mode.

This method can work, because you can make it stay resident in memory, then other software won't be able to switch automatically anymore, hehe
A net friend of mine, named 罗云彬, has already helped me make it happen. I'll post the source code for everyone right away,
so everyone can learn from it!
Floor 7 Posted 2004-02-19 00:00 ·  中国 江西 抚州 电信
初级用户
Credits 123
Posts 20
Joined 2004-02-16 00:00
22-year member
UID 17547
Gender Male
Status Offline
Floor 8 Posted 2004-02-19 00:00 ·  中国 江西 抚州 电信
初级用户
Credits 123
Posts 20
Joined 2004-02-16 00:00
22-year member
UID 17547
Gender Male
Status Offline
The code above really works. Everyone can compile it and try it, then you'll understand.
Run that compiled EXE, hehe, and after that under DOS no graphics at all can be displayed anymore.

But unless you reinstall the system, only then will you be able to normally display graphics under DOS again!

Teacher Luo really is an expert, admirable. I asked a lot of experts about this program, and nobody could help me,
but Teacher Luo managed to do it with just a little bit of code, amazing!
Floor 9 Posted 2004-02-19 00:00 ·  中国 四川 成都 中国科学院光电技术研究所
初级用户
Credits 189
Posts 21
Joined 2003-11-23 00:00
22-year member
UID 13227
Gender Male
Status Offline
Under DOS, how can I make my self-written 1.exe automatically run after receiving the character 1 sent from the serial port?
And if there are also 2.exe and 3.exe? If I use TC to write the serial port program, that's another EXE file too, right???
Floor 10 Posted 2004-02-20 00:00 ·  中国 广东 汕头 电信
银牌会员
★★★
Credits 1,451
Posts 446
Joined 2002-10-20 00:00
23-year member
UID 29
Gender Male
Status Offline
The following is quoted from youjiang at 2004-2-19 12:15:30:
This method can work, because you can make it stay resident in memory, then other software won't be able to switch automatically anymore, hehe
A net friend of mine, named 罗云彬, has already helped me make it happen. I'll post the source code for everyone right away,
so everyone can learn from it!


Could you contact Mr. Luo and ask him to write a program that detects the computer type and what corresponding type it is in XP?
See the picture:
Forum Jump: