Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C Programming > Three C questions

Reply
Thread Tools

Three C questions

 
 
anon856525@gmail.com
Guest
Posts: n/a
 
      01-17-2008
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.
 
Reply With Quote
 
 
 
 
CBFalconer
Guest
Posts: n/a
 
      01-18-2008
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

 
Reply With Quote
 
 
 
 
Regan Revised
Guest
Posts: n/a
 
      01-18-2008

<> wrote in message
news:424f0ef9-a87c-45d1-9702-...
> 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).



 
Reply With Quote
 
anon856525@gmail.com
Guest
Posts: n/a
 
      01-18-2008


jacob navia wrote:
> 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!
 
Reply With Quote
 
Kaz Kylheku
Guest
Posts: n/a
 
      01-18-2008
On Jan 17, 3:15*pm, anon856...@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.


Nice troll!

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


That's not going to be released until August 1995, so you have plenty
of time.
 
Reply With Quote
 
Kaz Kylheku
Guest
Posts: n/a
 
      01-18-2008
On Jan 18, 10:57*am, anon856...@gmail.com wrote:
> Well my machine only has 16 MB of RAM and a 200 MHZ processor


Go to the alley behind the building; there is an awesome upgrade
system waiting for you in a dumpster.
 
Reply With Quote
 
anon856525@gmail.com
Guest
Posts: n/a
 
      01-18-2008
Hey look what's your problem? Plenty of people don't have unlimited
cash to buy new computers all the time and keep up with the latest
gadgets and dongles, so don't make fun.

DOS still has a huge installed base and it's definitely a viable
platform for C development. IMO YMMV.

Kaz Kylheku wrote:
> On Jan 18, 10:57�am, anon856...@gmail.com wrote:
> > Well my machine only has 16 MB of RAM and a 200 MHZ processor

>
> Go to the alley behind the building; there is an awesome upgrade
> system waiting for you in a dumpster.

 
Reply With Quote
 
Ian Collins
Guest
Posts: n/a
 
      01-18-2008
wrote:
>

[Please don't top-post]

> Kaz Kylheku wrote:
>> On Jan 18, 10:57�am, anon856...@gmail.com wrote:
>>> Well my machine only has 16 MB of RAM and a 200 MHZ processor

>> Go to the alley behind the building; there is an awesome upgrade
>> system waiting for you in a dumpster.


> Hey look what's your problem? Plenty of people don't have unlimited
> cash to buy new computers all the time and keep up with the latest
> gadgets and dongles, so don't make fun.
>

The point was machine with an order of magnitude better performance can
be had for a song or even for free these days...

--
Ian Collins.
 
Reply With Quote
 
Mark McIntyre
Guest
Posts: n/a
 
      01-18-2008
wrote:
> Hello
>
> I am seeking the best way (speed and portability) to program
> mode 13h (320 x 200 256 colors), and mode X.


Golly. I haven't seen anyone trying to use those old CGA video modes
since the early nineties!

> What are your suggestions. Do I have to write my own C and ASM
> routines


You can't do this in Standard C, and under Win2K or later, you won't be
able to use interrupts directly either. You'll need to ask some borland
experts in a borland group, and possibly some DOS experts, if you can
find them

> 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?


Read your DOS manual for the FILES directive. And ask furthr DOS related
questions in a DOS programming group...

--
Mark McIntyre

CLC FAQ <http://c-faq.com/>
CLC readme: <http://www.ungerhu.com/jxh/clc.welcome.txt>
 
Reply With Quote
 
Randy Howard
Guest
Posts: n/a
 
      01-18-2008
On Fri, 18 Jan 2008 17:19:07 -0600, Ian Collins wrote
(in article <>):

> wrote:
>>

> [Please don't top-post]
>
>> Kaz Kylheku wrote:
>>> On Jan 18, 10:57�am, anon856...@gmail.com wrote:
>>>> Well my machine only has 16 MB of RAM and a 200 MHZ processor
>>> Go to the alley behind the building; there is an awesome upgrade
>>> system waiting for you in a dumpster.

>
>> Hey look what's your problem? Plenty of people don't have unlimited
>> cash to buy new computers all the time and keep up with the latest
>> gadgets and dongles, so don't make fun.
>>

> The point was machine with an order of magnitude better performance can
> be had for a song or even for free these days...


I've given P3's to goodwill in the last year, all had a gig or more of
RAM in them.

--
Randy Howard (2reply remove FOOBAR)
"The power of accurate observation is called cynicism by those
who have not got it." - George Bernard Shaw





 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Three Mobile --> Skype on three (Non-three [Symbian - Nokia] handsets) Harry Stottle UK VOIP 0 01-05-2010 08:59 AM
2 Tableless Three-Column Design Questions richardv2 HTML 2 01-21-2006 09:12 AM
three questions Rocket Scientist HTML 13 01-11-2005 07:32 PM
Three-tier .net web applications questions Adam White ASP .Net 10 11-03-2004 08:56 PM
Newbie Question: Eclipse RCP - three questions Marcin Misiewicz Java 1 08-19-2004 12:42 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57