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-26 18:25
中国DOS联盟论坛 » DOS疑难解答 & 问题讨论 (解答室) » How can a Win32 program run under DOS!!! View 684 Replies 4
Original Poster Posted 2003-09-05 00:00 ·  中国 山东 济南 联通
初级用户
Credits 103
Posts 1
Joined 2003-09-05 00:00
22-year member
UID 9478
Gender Male
Status Offline
I made a Win32 program with VC, question:::
How can a Win32 program run under DOS!!!
It gives this error: This program cannot be run in DOS mode!!!
Floor 2 Posted 2003-09-05 00:00 ·  中国 黑龙江 大庆 联通
初级用户
Credits 109
Posts 2
Joined 2003-09-05 00:00
22-year member
UID 9498
Gender Male
Status Offline
Programs under DOS might possibly be able to run under a 32-bit operating system,
but as far as I know, a 32-bit program can't possibly run in a 16-bit DOS environment, right?
Floor 3 Posted 2003-09-05 00:00 ·  美国 肯塔基州 费耶特县 列克星敦 Charter_Communications
系统支持
★★★★★★
“新DOS时代”站长
Credits 27,736
Posts 10,521
Joined 2002-10-09 12:00
23-year member
UID 9
Status Offline
Actually DOS is not only 16-bit, there is also 32-bit DOS, but pure DOS doesn't have the WIN API, so it can't run.
Wengier - 新DOS时代

欢迎大家来到我的“新DOS时代”网站,里面有各类DOS软件和资料,地址:
http://wendos.mycool.net/

E-Mail & MSN: wengierwu AT hotmail.com (最近比较忙,有事请联系DOSroot和雨露,谢谢!)

Floor 4 Posted 2003-09-05 00:00 ·  中国 湖北 武汉 联通
银牌会员
★★★
Credits 1,681
Posts 512
Joined 2003-08-02 00:00
22-year member
UID 7953
Gender Male
Status Offline
What if it doesn't call the Win API?
Somehow somewhere I've got to choose.
No matter if it is win or lose.
Floor 5 Posted 2003-10-12 00:00 ·  中国 山东 青岛 联通
初级用户
Credits 166
Posts 15
Joined 2003-10-12 00:00
22-year member
UID 11101
Gender Male
Status Offline
That shouldn't be possible, right?
A Win32 program has to call the API when it starts and when it closes.
Forum Jump: