outtextxy正在阻止洪水填充 [英] outtextxy is stopping floodfill

查看:87
本文介绍了outtextxy正在阻止洪水填充的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,


我正在使用MSDOS操作系统并且在一个程序的功能中我试图显示几百行的文件在图形模式下使用

outtextxy()。

程序从文件中获取20行,并使用带有彩色字母的outtextxy显示

。当用户给出一个

键(向上箭头)输入旧内容将被删除(我画了旧的

文本的背景颜色),新文本将显示为新的

文件。

它工作但当我切换到使用floodfill和fillellipse等相同的

程序的其他部分时程序没有

做他们。这种情况发生在每次我打电话给文件后显示

功能。

将连续使用不同颜色的outtextxy和

访问文件内容经常崩溃程序。我检查了

我是否关闭了文件并正确使用了fseek。可以有人

帮助我。

提前致谢,

Krishna。

解决方案

大家好,

我在borland的cpp新闻组发布这个。

谢谢。


< blockquote> kkrish说:


大家好,


我正在使用MSDOS操作系统并且在程序的功能中我

尝试使用

outtextxy()在图形模式下显示几百行文件。



< snip>


将以不同的颜色连续使用outtextxy和

访问文件内容会频繁崩溃程序。我检查了

我是否关闭了文件并正确使用了fseek。可以有人

帮助我。



你的问题要么与C有什么关系,要么与你的调用有关。

听起来非常像Turbo C扩展。根据你的描述,不可能知道问题出在哪里。如果这是一个C问题,我们可以

帮助。如果使用Turbo扩展程序有问题,我们可以指向

正确方向。但是为了找出它是什么,我们需要看看你的

程序源代码。


-

Richard Heathfield

Usenet是一个奇怪的地方 - dmr 29/7/1999
http://www.cpax.org.uk

电子邮件:rjh在上述域名, - www。


5月10日上午5:40,Richard Heathfield< ; r ... @ see.sig.invalidwrote:


kkrish说:


大家好,


我正在使用MSDOS操作系统并且在程序的功能中我试图显示几百行的b $ b图形模式下的文件使用

outtextxy()。



< snip>


将以不同的颜色连续使用outtextxy和

访问文件内容会频繁崩溃程序。我检查了

我是否关闭了文件并正确使用了fseek。可以有人

帮助我。



你的问题要么与C有什么关系,要么与你的电话有关。

听起来非常像Turbo C扩展。根据你的描述,不可能知道问题出在哪里。如果这是一个C问题,我们可以

帮助。如果使用Turbo扩展程序有问题,我们可以指向

正确方向。但要找出它是什么,我们需要看到你的

程序源代码。



outtextxy,floodfill都是与图形相关的概念。 outtextxy是

包含在turboC的graphics.h库中,不包含在

ANSI标准中。


我认为outtextxy如果它与你正在填充的物体的边界重叠,肯定会影响洪水填充。


Ajinkya


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.

解决方案

Hello all,
I am posting this on borland''s cpp newsgroup.
Thanks.


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.


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


这篇关于outtextxy正在阻止洪水填充的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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