473,385 Members | 1,486 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

outtextxy is stopping floodfill

Hello all,

I am using MSDOS operating system and in a function of a program I
tried to display a few hundred lines of a file in graphics mode using
outtextxy().
The program gets 20 lines from a file and displays
them using outtextxy with colored letters .When the user gives a
key(up arrow) input the old content will be erased (i drew the old
text in background color) and new text will be shown fresh from the
file.
It worked but when I switched to some other part of the same
program which uses floodfill and fillellipse,etc the program does not
do them.This happens everytime after I call the file displaying
fuction.
Will continuous usage of outtextxy in different colors and
accesing the file contents frequenntly crash a program.I checked
whether I have closed the files and used fseek properly.Can someone
help me.
Thanks in advance ,
Krishna.

May 10 '07 #1
10 3187
Hello all,
I am posting this on borland's cpp newsgroup.
Thanks.

May 10 '07 #2
kkrish said:
Hello all,

I am using MSDOS operating system and in a function of a program I
tried to display a few hundred lines of a file in graphics mode using
outtextxy().
<snip>
Will continuous usage of outtextxy in different colors and
accesing the file contents frequenntly crash a program.I checked
whether I have closed the files and used fseek properly.Can someone
help me.
Your problem is either to do with C or to do with your calls to what
sound very much like Turbo C extensions. From your description, it is
impossible to know where the problem lies. If it's a C problem, we can
help. If it's problem using a Turbo extension, we can point you in the
right direction. But to find out which it is, we need to see your
program source code.

--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.cpax.org.uk
email: rjh at the above domain, - www.
May 10 '07 #3
On May 10, 5:40 am, Richard Heathfield <r...@see.sig.invalidwrote:
kkrish said:
Hello all,
I am using MSDOS operating system and in a function of a program I
tried to display a few hundred lines of a file in graphics mode using
outtextxy().
<snip>
Will continuous usage of outtextxy in different colors and
accesing the file contents frequenntly crash a program.I checked
whether I have closed the files and used fseek properly.Can someone
help me.

Your problem is either to do with C or to do with your calls to what
sound very much like Turbo C extensions. From your description, it is
impossible to know where the problem lies. If it's a C problem, we can
help. If it's problem using a Turbo extension, we can point you in the
right direction. But to find out which it is, we need to see your
program source code.
outtextxy, floodfill are all graphics related concepts. outtextxy is
included in the graphics.h library of turboC which not included in the
ANSI standards.

I think outtextxy will definitely effect floodfill if it overlaps with
the boundaries of the object you are filling.

Ajinkya

May 10 '07 #4
Ajinkya said:
On May 10, 5:40 am, Richard Heathfield <r...@see.sig.invalidwrote:
<snip>
>Your problem is either to do with C or to do with your calls to what
sound very much like Turbo C extensions. From your description, it is
impossible to know where the problem lies. If it's a C problem, we
can help. If it's problem using a Turbo extension, we can point you
in the right direction. But to find out which it is, we need to see
your program source code.

outtextxy, floodfill are all graphics related concepts.
Gosh.
outtextxy is
included in the graphics.h library of turboC which not included in the
ANSI standards.
Re-gosh. But how is your reply relevant to mine?

--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.cpax.org.uk
email: rjh at the above domain, - www.
May 10 '07 #5
On May 10, 10:21 am, Richard Heathfield <r...@see.sig.invalidwrote:
Ajinkya said:
On May 10, 5:40 am, Richard Heathfield <r...@see.sig.invalidwrote:

<snip>
Your problem is either to do with C or to do with your calls to what
sound very much like Turbo C extensions. From your description, it is
impossible to know where the problem lies. If it's a C problem, we
can help. If it's problem using a Turbo extension, we can point you
in the right direction. But to find out which it is, we need to see
your program source code.
outtextxy, floodfill are all graphics related concepts.

Gosh.
outtextxy is
included in the graphics.h library of turboC which not included in the
ANSI standards.

Re-gosh. But how is your reply relevant to mine?

--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999http://www.cpax.org.uk
email: rjh at the above domain, - www.
none

May 10 '07 #6
Ajinkya wrote:
On May 10, 10:21 am, Richard Heathfield <r...@see.sig.invalidwrote:
--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999http://www.cpax.org.uk
email: rjh at the above domain, - www.

none
Please trim quoted material. In particular, remove signature blocks
(like the one I left as an example). I know Google doesn't do that
automatically, so you need to do it by hand.


Brian
May 10 '07 #7
In article <Ur******************************@bt.com>,
Richard Heathfield <rj*@see.sig.invalidwrote:
>outtextxy, floodfill are all graphics related concepts.
>Gosh.
*I* thought it was some kind of spell for banishing text. "Out,
Textxy". Sort of like "Begone, foul fiend", but for text.

-- Richard
--
"Consideration shall be given to the need for as many as 32 characters
in some alphabets" - X3.4, 1963.
May 10 '07 #8
Richard Heathfield <r...@see.sig.invalidwrote:
Ajinkya said:
Richard Heathfield <r...@see.sig.invalidwrote:
Your problem is either to do with C or to do with your
calls to what sound very much like Turbo C extensions.
Here you have a doubt.
outtextxy, floodfill are all graphics related concepts.

Gosh.
outtextxy is
included in the graphics.h library of turboC which not
included in the ANSI standards.

Re-gosh.
You are informed that the functions being used are third
party, implementation dependant, graphics functions.
But how is your reply relevant to mine?
The OP's only substantive question was, "Will continuous
usage of outtextxy in different colors and accesing the
file contents frequenntly crash a program[?]". Having
been told that non standard functions are being used,
how do you see the C standard answering the question?

--
Peter

May 10 '07 #9
ri*****@cogsci.ed.ac.uk (Richard Tobin) writes:
In article <Ur******************************@bt.com>,
Richard Heathfield <rj*@see.sig.invalidwrote:
>>outtextxy, floodfill are all graphics related concepts.
>>Gosh.

*I* thought it was some kind of spell for banishing text. "Out,
Textxy". Sort of like "Begone, foul fiend", but for text.
The spell for banishing text is "Plonk".

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <* <http://users.sdsc.edu/~kst>
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"
May 11 '07 #10
Peter Nilsson said:

<snip>
The OP's only substantive question was, "Will continuous
usage of outtextxy in different colors and accesing the
file contents frequenntly crash a program[?]".
Indeed. I was attempting, however, to deal with the OP's implicit
question: "it's broke and I can't fix it, what do I do?" It may be that
the problem he is experiencing is indeed related to the non-standard
functions he is using, in which case we can at least point him in the
proper direction, as I said in my original reply.
Having
been told that non standard functions are being used,
how do you see the C standard answering the question?
That depends on the source, surely? And I haven't seen that yet.

--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.cpax.org.uk
email: rjh at the above domain, - www.
May 11 '07 #11

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Christian Jacob | last post by:
Hello, I need to dynamically create room-plans which are supposed to highlight given rooms. For this, I've got room-plan templates which ahow the outline of the rooms of a building. Now I want...
5
by: CG | last post by:
Hi I have developed a Windows Service When I try to start the Service it tells me that it cannot start as there may not be any work to do When I comment out below line of code in my OnStart...
6
by: Dave | last post by:
I have a situation where I want to react to a ctrl-click on a <span> and it works in Netscape and Firefox browsers but in IE I have a problem. In IE I do catch the ctrl-click but IE also renders...
1
by: nilaakash | last post by:
Hi everybody, I wanted to interface instruments with computer in C language. From the instruments whatever data I get, I wanted to plot online and print also in DOS mode. There in graphics mode I...
0
by: Glen Wolinsky | last post by:
I am creating a Windows service that will check a request queue (database) for pending requests. It will then process each individual request until completed, wait a set time interval and then...
1
by: juleni | last post by:
Hello, is there a possibility starting or stopping postgres database and creating database instance by JAVA? Is there some API available for this? If yes, can you please write some example, how...
2
by: matteo | last post by:
Hi everyboby, i wrote a c# service that every XXX minute launch a working thread on timer events, something like this: private void timer_Elapsed ( object status ) { // Worker thread...
11
by: anon | last post by:
Borland's BGI graphics library (GRAPHICS.LIB, GRAPHICS.TPU) has a bug which can cause the floodfill routine to crash. It's most likely to occur in C applications when compiled using the small data...
0
by: eldamiani | last post by:
Ineed a help. I want to ask, how I can do dialog box window which is a normal form, but causes stopping the code execution in form which call out this dialog box. I have ...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.