三个问题 [英] Three C questions

查看:68
本文介绍了三个问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好


我正在寻找最好的方式(速度和便携性)来编程

模式13h(320 x 200 256色)和模式X 。


我正在使用Borland的Turbo C ver 3.0 for MS DOS。

使用Borland产品,我找不到这种模式的BGI驱动程序。

我知道内置支持其他VGA模式

(640 x 200 x 16色),(640 x 350 x 16色)..但是我我不是那么感兴趣的b $ b。


你有什么建议。我是否必须编写自己的C和ASM

例程

来执行模式13h和模式X?我找不到来自Borland的更新的BGI驱动程序




其次,我正在考虑将所有MS DOS代码移植到

Windows 95.

我会很感激一些代码设计技巧,以减少从DOS到Windows重写视频代码的工作量。

我知道MS C编译器内置了Mode 13h支持,但我没有
有MS C编译器。顺便说一句,MS C中是否有模式X支持

编译器

版本7.0。


我也有问题 - 我需要在一个程序中同时打开大约30个文件

,但我只能成功打开20和

然后fopen失败。有谁知道问题应该是什么?
是什么?


谢谢。

解决方案



< an ******** @ gmail.comwrote in message

news:42 ********** ************************ @ s19g2000 prg.googlegroups.com ...


你好


我正在寻找最好的方式(速度和便携性)来编程

模式13h(320 x 200 256色)和模式X.


我正在使用Borland的Turbo C ver 3.0 for MS DOS。

使用Borland产品,我找不到这种模式的BGI驱动程序。 />
我知道内置支持其他VGA模式

(640 x 200 x 16色),(640 x 350 x 16色)..但我不是

对那些感兴趣。


你有什么建议。我是否必须编写自己的C和ASM

例程

来执行模式13h和模式X?我找不到来自Borland的更新的BGI驱动程序




其次,我正在考虑将所有MS DOS代码移植到

Windows 95.

我会很感激一些代码设计技巧,以减少从DOS到Windows重写视频代码的工作量。

我知道MS C编译器内置了Mode 13h支持,但我没有
有MS C编译器。顺便说一句,MS C中是否有模式X支持

编译器

版本7.0。


我也有问题 - 我需要在一个程序中同时打开大约30个文件

,但我只能成功打开20和

然后fopen失败。有谁知道问题应该是什么?
是什么?


谢谢。



你能抽象地描述模式13h和模式X吗?

-


里根修订版


总结:1。宇宙是一个巨大的飞轮,每转10,000转,每分钟b $ b。男人是一只生病的苍蝇,头晕目眩。 3.宗教是理论上的轮子设计和设定旋转给他骑。

- H L Mencken,Coda,在智能套装(纽约,1920年12月;再次在A

Mencken Chrestomathy,pt.1,1949)。


< blockquote> an********@gmail.com 写道:


>



.... snip ...


>

我也遇到了问题 - 我需要在一个程序中同时打开大约30个文件

,但我只能打开20并且

然后fopen失败。有谁知道问题应该是什么?b $ b b是多少?



这对于c.l.c来说都是偏离主题的。尝试一个新闻组来处理

DOS。


BTW,我相信添加files = 35在config.sys中会这样做。


-

[邮件]:Chuck F(cinefalconer at maineline dot net)

[page]:< http://cbfalconer.home.att.net>

尝试下载部分。


-

通过 http://www.teranews.com 上的免费Usenet帐户发布





jacob navia写道:

一个******** @ gmail.com 写道:


你好


我正在寻找最佳方式(速度和便携性)来编程

模式13h(320 x 200 256色)和模式X 。


我正在使用Borland的Turbo C ver 3.0 for MS DOS。

使用Borland产品,我找不到这种模式的BGI驱动程序。

我知道内置支持其他VGA模式

(640 x 200 x 16种颜色) ,(640 x 350 x 16种颜色)..但我不是那么感兴趣的b $ b。


你有什么建议。我是否必须编写自己的C和ASM

例程

来执行模式13h和模式X?我从Borland找不到更新的BGI驱动程序




如果没有司机,我担心答案是肯定的......

还有什么?






感谢您的回复。我以为可能有一个由用户运行的网站

会有司机...


我一直试图找到Borland的DOS支持电子邮件地址或电话

号码,但它似乎不在他们的网站上。有谁知道

谁在Borland我应该联系询问这个?


>


其次,我正在考虑将所有MS DOS代码移植到

Windows 95.



为什么不去Windows XP?你将不得不稍后将它b / b端口移植到windows xp ...



我的机器只有16 MB的RAM和200 MHZ处理器,它的价格远远低于Windows XP的最低规格 - 你认为它会运行好吗?我不这么认为。


我会很感激一些代码设计技巧,以减少
$ b的数量$ b工作重写从DOS到Windows的视频代码。



然后忘记那些DOS模式,并在windows下编程

图形。它更容易,并且您不需要编写任何驱动程序。



我猜DOS的优势是更大的可移植性 - 我的意思是,Windows

计算机可以运行DOS程序但DOS计算机不能运行Windows

程序。


另外它在DOS上更简单,你可以直接写入视频内存

而不必使用复杂和限制性的API。


>


我知道MS C编译器内置了Mode 13h支持,但我没有
有MS C编译器。那么,在MS C中是否有模式X支持

编译器

ver 7.0。



对此有何答案?



我也有问题 - 我需要在一个程序中同时打开大约30个文件

,但我只能在20开始成功并且

然后fopen失败。有谁知道问题应该是什么?b $ b b是多少?



如果我没记错的话,config.sys中有一个参数

指定文件的数量......看看吧。



谢谢,你是对的。

默认值似乎设置为非常低的数字 - 糟糕!


Hello

I am seeking the best way (speed and portability) to program
mode 13h (320 x 200 256 colors), and mode X.

I am using Borland''s Turbo C ver 3.0 for MS DOS.
With Borland product, I can not find a BGI driver for this mode.
I know there are built in support for the other VGA modes
(640 x 200 x 16 colors), (640 x 350 x 16 colors).. but I am not
interested int those.

What are your suggestions. Do I have to write my own C and ASM
routines
to do Mode 13h and Mode X? I could not find an updated BGI driver
from Borland.

Secondly, I am thinking about porting all of the MS DOS code to
Windows 95.
I would appreciate some code design tips to reduce the amount of
work rewriting video code from DOS to Windows.

I know MS C compiler has Mode 13h support built in, but I do not
have MS C compiler. By the way, is there Mode X support in MS C
compiler
ver 7.0.

I am also having problems - I need to have around 30 files open
simultaneously in one program, but I only succeed in opening 20 and
then fopen fails. Does anyone have any idea what the problem should
be?

Thanks.

解决方案


<an********@gmail.comwrote in message
news:42**********************************@s19g2000 prg.googlegroups.com...

Hello

I am seeking the best way (speed and portability) to program
mode 13h (320 x 200 256 colors), and mode X.

I am using Borland''s Turbo C ver 3.0 for MS DOS.
With Borland product, I can not find a BGI driver for this mode.
I know there are built in support for the other VGA modes
(640 x 200 x 16 colors), (640 x 350 x 16 colors).. but I am not
interested int those.

What are your suggestions. Do I have to write my own C and ASM
routines
to do Mode 13h and Mode X? I could not find an updated BGI driver
from Borland.

Secondly, I am thinking about porting all of the MS DOS code to
Windows 95.
I would appreciate some code design tips to reduce the amount of
work rewriting video code from DOS to Windows.

I know MS C compiler has Mode 13h support built in, but I do not
have MS C compiler. By the way, is there Mode X support in MS C
compiler
ver 7.0.

I am also having problems - I need to have around 30 files open
simultaneously in one program, but I only succeed in opening 20 and
then fopen fails. Does anyone have any idea what the problem should
be?

Thanks.

Can you describe Mode 13h and Mode X abstractly?
--

Reagan Revision

To sum up: 1. The cosmos is a gigantic fly-wheel making 10,000 revolutions a
minute. 2. Man is a sick fly taking a dizzy ride on it. 3. Religion is the
theory that the wheel was designed and set spinning to give him the ride.
-- H L Mencken, "Coda," in Smart Set (New York, Dec. 1920; repr. in A
Mencken Chrestomathy, pt. 1, 1949).


an********@gmail.com wrote:

>

.... snip ...

>
I am also having problems - I need to have around 30 files open
simultaneously in one program, but I only succeed in opening 20 and
then fopen fails. Does anyone have any idea what the problem should
be?

This is all off-topic for c.l.c. Try a newsgroup that deals with
DOS.

BTW, I believe adding "files = 35" in config.sys will do.

--
[mail]: Chuck F (cbfalconer at maineline dot net)
[page]: <http://cbfalconer.home.att.net>
Try the download section.

--
Posted via a free Usenet account from http://www.teranews.com




jacob navia wrote:

an********@gmail.com wrote:

Hello

I am seeking the best way (speed and portability) to program
mode 13h (320 x 200 256 colors), and mode X.

I am using Borland''s Turbo C ver 3.0 for MS DOS.
With Borland product, I can not find a BGI driver for this mode.
I know there are built in support for the other VGA modes
(640 x 200 x 16 colors), (640 x 350 x 16 colors).. but I am not
interested int those.

What are your suggestions. Do I have to write my own C and ASM
routines
to do Mode 13h and Mode X? I could not find an updated BGI driver
from Borland.


If there is no driver, I fear the answer is yes...
What else?

Hi,

thanks for the reply. I thought there could be a website run by users
that would have drivers...

I''ve been trying to find Borland''s DOS support email address or phone
number, but it doesn''t seem to be on their website. Does anyone know
who at Borland I should contact to ask about this?

>

Secondly, I am thinking about porting all of the MS DOS code to
Windows 95.


Why not going to windows XP? You will have to
port it later to windows xp anyway...

Well my machine only has 16 MB of RAM and a 200 MHZ processor, which
is quite far below Windows XP minimum specs - do you think it would
run OK? I wouldn''t think so.

I would appreciate some code design tips to reduce the amount of
work rewriting video code from DOS to Windows.


Forget about those DOS modes then, and program
graphics under windows. It is much easier, and
you do not need to write any drivers.

I guess the advantage of DOS is greater portability - I mean, Windows
computers can run DOS programs but DOS computers can''t run Windows
programs.

Also it''s much simpler on DOS where you can just write to video memory
directly instead of having to use a complicated and restrictive API.

>

I know MS C compiler has Mode 13h support built in, but I do not
have MS C compiler. By the way, is there Mode X support in MS C
compiler
ver 7.0.

Any answer to this?


I am also having problems - I need to have around 30 files open
simultaneously in one program, but I only succeed in opening 20 and
then fopen fails. Does anyone have any idea what the problem should
be?


There is a parameter in config.sys if I remember correctly that
specifies the number of files... Give it a look.

Thanks, you''re right. It seems to be set to a very low number by
default - bad!


这篇关于三个问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆