1. put_screen_char() doesn't work with EX under Windows

This is a multi-part message in MIME format.

------=_NextPart_000_001F_01C0D8BB.749FFD60
	charset="iso-8859-2"

When I tried to use put_screen_char() with Ex.exe (under Win98) i got =
this error:

C:\EUPHORIA\include\image.e:337 in procedure put_screen_char()=20
slice ends past end of sequence (32 > 2)=20
    line =3D 1
    column =3D 65'A'
    char_attr =3D {57'9',2}
    scr_addr =3D 753792
    vc =3D {1,3,25,80'P',0,0,32' ',8}
    overflow =3D -30
=20
It is a bug or put_screen_char() cannot be used under Windows?


------=_NextPart_000_001F_01C0D8BB.749FFD60
Content-Type: text/html;
	charset="iso-8859-2"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-2" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2614.3500" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3D"Arial CE" size=3D2>When I tried to use =
put_screen_char() with=20
Ex.exe (under Win98) i got this error:</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3D"Arial CE" =
size=3D2><EM>C:\EUPHORIA\include\image.e:337 in=20
procedure put_screen_char() <BR>slice ends past end of sequence (32 &gt; =
2)=20
<BR>&nbsp;&nbsp;&nbsp; line =3D 1<BR>&nbsp;&nbsp;&nbsp; column =3D=20
65'A'<BR>&nbsp;&nbsp;&nbsp; char_attr =3D =
{57'9',2}<BR>&nbsp;&nbsp;&nbsp; scr_addr=20
=3D 753792<BR>&nbsp;&nbsp;&nbsp; vc =3D {1,3,25,80'P',0,0,32'=20
',8}<BR>&nbsp;&nbsp;&nbsp; overflow =3D -30</EM></FONT></DIV>
<DIV><FONT face=3D"Arial CE" size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3D"Arial CE" size=3D2>It is a bug or put_screen_char() =
cannot be=20
used under Windows?<BR></DIV></FONT>
<DIV><FONT face=3D"Arial CE"=20

------=_NextPart_000_001F_01C0D8BB.749FFD60--

new topic     » topic index » view message » categorize

2. Re: put_screen_char() doesn't work with EX under Windows

Hi Martin,
I think this is a bug in IMAGE.E file.

On line 336 it currently reads

     if overflow then

but i think it should read

     if overflow > 0 then

If you take a copy of IMAGE.E and change this line as I mentioned, it seems
to work okay. However, by doing that, the number of lines in image.e
contributes to the 300-lines trial version limit. If you have the full
version of Euphoria that won't matter at all.

------
Derek Parnell
Melbourne, Australia
"To finish a job quickly, go slower."

----- Original Message -----
From: martin.stachon at worldonline.cz
To: EUforum
Sent: Thursday, May 10, 2001 3:08 AM
Subject: put_screen_char() doesn't work with EX under Windows



When I tried to use put_screen_char() with Ex.exe (under Win98) i got this
error:

C:\EUPHORIA\include\image.e:337 in procedure put_screen_char()
slice ends past end of sequence (32 > 2)
    line = 1
    column = 65'A'
    char_attr = {57'9',2}
    scr_addr = 753792
    vc = {1,3,25,80'P',0,0,32' ',8}
    overflow = -30

It is a bug or put_screen_char() cannot be used under Windows?


=

new topic     » goto parent     » topic index » view message » categorize

3. Re: put_screen_char() doesn't work with EX under Windows

This is a multi-part message in MIME format.

------=_NextPart_000_0008_01C0D8A7.4693C000
	charset="iso-8859-2"

First thing, EX.EXE will not work with MS-Windows it's sole purpose is DOS

try instead EXW.EXE designed for Windows programs.

You'll need a non-dos procedure to write to a Window in Windows
Win32lib uses its own special routines for this.
Read the documentation that comes with win32lib or if your
ready for API, look into Jacques Dechenes WinAPI routines.


Euman
  ----- Original Message -----
  From: martin.stachon at worldonline.cz
  To: EUforum
  Sent: Wednesday, May 09, 2001 12:08
  Subject: put_screen_char() doesn't work with EX under Windows



  When I tried to use put_screen_char() with Ex.exe (under Win98) i got this
error:

  C:\EUPHORIA\include\image.e:337 in procedure put_screen_char()
  slice ends past end of sequence (32 > 2)
      line = 1
      column = 65'A'
      char_attr = {57'9',2}
      scr_addr = 753792
      vc = {1,3,25,80'P',0,0,32' ',8}
      overflow = -30

  It is a bug or put_screen_char() cannot be used under Windows?


  =

------=_NextPart_000_0008_01C0D8A7.4693C000
Content-Type: text/html;
	charset="iso-8859-2"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-2">
<META content=3D"MSHTML 6.00.2462.0" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>First thing, EX.EXE will not work with =
MS-Windows=20
it's sole purpose is DOS</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>try instead EXW.EXE designed for =
Windows=20
programs.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>You'll need a non-dos procedure to =
write to a=20
Window in Windows</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Win32lib uses its own special routines =
for=20
this.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Read the documentation that comes with =
win32lib or=20
if your</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>ready for API, look into Jacques =
Dechenes WinAPI=20
routines.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV>Euman</DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
  <DIV style=3D"FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV=20
  style=3D"BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: =
black"><B>From:</B>=20
  <A title=3Dmartin.stachon at worldonline.cz=20
  =
href=3D"mailto:martin.stachon at worldonline.cz">martin.stachon at worldonline.=
cz</A>=20
  </DIV>
  <DIV style=3D"FONT: 10pt arial"><B>To:</B> <A =
title=3DEUforum at topica.com=20
  href=3D"mailto:EUforum at topica.com">EUforum</A> </DIV>
  <DIV style=3D"FONT: 10pt arial"><B>Sent:</B> Wednesday, May 09, 2001 =
12:08</DIV>
  <DIV style=3D"FONT: 10pt arial"><B>Subject:</B> put_screen_char() =
doesn't work=20
  with EX under Windows</DIV>
<A =
  <DIV><FONT face=3D"Arial CE" =
size=3D2><EM>C:\EUPHORIA\include\image.e:337 in=20
  procedure put_screen_char() <BR>slice ends past end of sequence (32 =
&gt; 2)=20
  <BR>&nbsp;&nbsp;&nbsp; line =3D 1<BR>&nbsp;&nbsp;&nbsp; column =3D=20
  65'A'<BR>&nbsp;&nbsp;&nbsp; char_attr =3D =
{57'9',2}<BR>&nbsp;&nbsp;&nbsp;=20
  scr_addr =3D 753792<BR>&nbsp;&nbsp;&nbsp; vc =3D {1,3,25,80'P',0,0,32' =

  ',8}<BR>&nbsp;&nbsp;&nbsp; overflow =3D -30</EM></FONT></DIV>
  <DIV><FONT face=3D"Arial CE" size=3D2></FONT>&nbsp;</DIV>
  <DIV><FONT face=3D"Arial CE" size=3D2>It is a bug or put_screen_char() =
cannot be=20
  used under Windows?<BR></DIV></FONT>
  <DIV><FONT face=3D"Arial CE"=20
  =
  =
href=3D"http://topica.com/u/?b1dd66.b2lJ88">http://topica.com/u/?b1dd66.b=
2lJ88</A>=20
  Or send an email To: EUforum-unsubscribe at topica.com This email was =
sent to:=20
  =
  =

------=_NextPart_000_0008_01C0D8A7.4693C000--

new topic     » goto parent     » topic index » view message » categorize

4. Re: put_screen_char() doesn't work with EX under Windows

This is a multi-part message in MIME format.

------=_NextPart_000_001E_01C0D946.F994F1C0
charset="iso-8859-2"

new topic     » goto parent     » topic index » view message » categorize

5. Re: put_screen_char() doesn't work with EX under Windows

----- Original Message -----
From: Brian Broker <bkb at cnw.com>

> Robert Craig once said:
>
> This is a known bug.
> Please correct your copy of image.e
> It will be corrected this way in 2.3.
> Not many people use this routine.

Why doesn't RDS repair all this small bugs immediately (Eu 2.2.1, 2.2.2,
etc.) ?
The currnet version is >1 year old.

Martin

new topic     » goto parent     » topic index » view message » categorize

6. Re: put_screen_char() doesn't work with EX under Windows

Euman writes :
> First thing, EX.EXE will not work with MS-Windows it's sole purpose is DOS
> try instead EXW.EXE designed for Windows programs.
WIN9x contains DOS and *.ex programs runs faster with ex than exw
Exw doesn't support put_screen_char()

>You'll need a non-dos procedure to write to a Window in Windows
>Win32lib uses its own special routines for this.
>Read the documentation that comes with win32lib or if your
>ready for API, look into Jacques Dechenes WinAPI routines.

 Yes, I've rewritten the program to use Exotica, it looks much better than
in DOS box :)

Martin

new topic     » goto parent     » topic index » view message » categorize

7. Re: put_screen_char() doesn't work with EX under Windows

Daryl van den Brink writes:
> And what about get_mouse? It works well in Linux, even 
> in an xterm window, so why can't it be done in windows? 

It can be done, and may eventually be done, but the priority is low.
DOS, Linux and Windows have very different API's for handling
a text-mode mouse. It's not just a matter of porting existing code.
Anyway, 99% of Windows Euphoria programmers want to use 
a mouse as part of a Graphical User Interface like Win32Lib provides,
not a 25x80 text-mode console window.

Regards,
   Rob Craig
   Rapid Deployment Software
   http://www.RapidEuphoria.com

new topic     » goto parent     » topic index » view message » categorize

8. Re: put_screen_char() doesn't work with EX under Windows

On 11 May 2001, at 11:26, Robert Craig wrote:


> 
> Daryl van den Brink writes:
> > And what about get_mouse? It works well in Linux, even 
> > in an xterm window, so why can't it be done in windows? 
> 
> It can be done, and may eventually be done, but the priority is low.
> DOS, Linux and Windows have very different API's for handling
> a text-mode mouse. It's not just a matter of porting existing code.
> Anyway, 99% of Windows Euphoria programmers want to use 
> a mouse as part of a Graphical User Interface like Win32Lib provides,
> not a 25x80 text-mode console window.

Actually, about the only reason i'd use a windoze window is because i can't 
use the mouse in a dos box. The programs i am currently writing need 
minimal interaction from me, but it would be nice to be able to copy/paste 
the current status to/from the dos boxes. I have 8 of them running right now.

Kat

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu