Discussion:
GUI and CLI program
(too old to reply)
Earl Colby Pottinger
2004-10-07 20:52:35 UTC
Permalink
Hello,
I have been developing a very simple program that does one thing only,
it reads in a file or files, filters out the high bit, and replaces all the
unprintable characters with an '@' but that '@' can be changed if needed.

The reason I created the program is because I found that sometimes my
compiles would fail but I could find nothing wrong with the code, and
sometimes I got the program work by just retyping some lines all over again.
It turns out that you can see unprintable characters in StyleEdit but not in
the IDE.

So far I have four working versions of the code. A Tracker Addon version, a
DragOn window version, a CLI terminal version, and a GUI MenuWindow version.

I am presently trying to write a combined DragOn Window + GUI MenuWindow. If
I get that to work I would like to write a combined CLI + DragOn + GUI
MenuWindow version. If you have seen the format command on the Amiga you
know what I mean. If you start the program from the CLI you get a CLI
interface, if you start the program from the Desktop you get a GUI interface.

Does anyone know of a program with code that works like that that I can
download to help guide me?

Earl Colby Pottinger

PS. Is this worthwhile to put on BeBits?
--
I make public email sent to me! Hydrogen Peroxide Rockets, OpenBeos,
SerialTransfer 3.0, RAMDISK, BoatBuilding, DIY TabletPC. What happened to
the time? http://webhome.idirect.com/~earlcp
Juergen Starek
2004-10-08 12:12:07 UTC
Permalink
Post by Earl Colby Pottinger
I have been developing a very simple program that does one thing only,
it reads in a file or files, filters out the high bit, and replaces all the
The reason I created the program is because I found that sometimes my
compiles would fail but I could find nothing wrong with the code, and
sometimes I got the program work by just retyping some lines all over again.
It turns out that you can see unprintable characters in StyleEdit but not in
the IDE.
[...]
PS. Is this worthwhile to put on BeBits?
Hello,

I'm afraid I don't really see a practical use for it. From what you
describe, I assume your source files somehow contain unprintable
characters (which?) that cause the compiler to fail. How do you get the in
in the first place? Typos? Judging from your headers, you appear to be
from Canada. Do you use an AZERTY layout? If so, why don't you just switch
to a US-American layout for coding (which, at least, makes access to all
the brackets easier)?

Jürgen
Jens Kilian
2004-10-08 21:12:11 UTC
Permalink
Post by Juergen Starek
From what you
describe, I assume your source files somehow contain unprintable
characters (which?) that cause the compiler to fail. How do you get the[m] in
in the first place?
Copy-and-paste from NetPositive would be my guess. Happened to me several
times :-(
--
mailto:***@acm.org As the air to a bird, or the sea to a fish,
http://www.bawue.de/~jjk/ so is contempt to the contemptible. [Blake]
Earl Colby Pottinger
2004-10-09 00:52:14 UTC
Permalink
Post by Juergen Starek
Post by Juergen Starek
From what you
describe, I assume your source files somehow contain unprintable
characters (which?) that cause the compiler to fail. How do you get
the[m] in
Post by Juergen Starek
in the first place?
Copy-and-paste from NetPositive would be my guess. Happened to me several
times :-(
Yes, I have gotten code that way, als I have download 'C' code written for
the DOS CLI that have given me the same problems.

Earl Colby Pottinger
--
I make public email sent to me! Hydrogen Peroxide Rockets, OpenBeos,
SerialTransfer 3.0, RAMDISK, BoatBuilding, DIY TabletPC. What happened to
the time? http://webhome.idirect.com/~earlcp
Alexander G. M. Smith
2004-10-11 13:12:58 UTC
Permalink
Post by Earl Colby Pottinger
I am presently trying to write a combined DragOn Window + GUI MenuWindow.
I haven't tried making a tracker add-on, but I did make a few programs that
work as both a CLI command, a GUI driven interface (with drag and drop too)
and a script messages driven version. The key was to write the basic engine
as responding to scripting messages then convert CLI arguments and GUI
operations into scripting messages. AGMSBayesianSpamServer is one of those
programs, source code included at http://www.bebits.com/app/3055 or more
recently as part of the MDR (mail daemon replacement) distribution.

- Alex
Earl Colby Pottinger
2004-10-12 17:41:43 UTC
Permalink
Post by Alexander G. M. Smith
Post by Earl Colby Pottinger
I am presently trying to write a combined DragOn Window + GUI MenuWindow.
I haven't tried making a tracker add-on, but I did make a few programs that
work as both a CLI command, a GUI driven interface (with drag and drop too)
and a script messages driven version. The key was to write the basic engine
as responding to scripting messages then convert CLI arguments and GUI
operations into scripting messages. AGMSBayesianSpamServer is one of those
programs, source code included at http://www.bebits.com/app/3055 or more
recently as part of the MDR (mail daemon replacement) distribution.
Thank you very much, I am downloading now. Please remember that compared to
you I am a very poor programmer, when I am finished I suggest you not look at
the resulting code, my coding is known to case pain in people with passable
skills in C++. For some reason I can't break out of my Basic coding habits,
and even my C and C++ programs look like Basic code - you have been warned :)

Earl Colby Pottinger
--
I make public email sent to me! Hydrogen Peroxide Rockets, OpenBeos,
SerialTransfer 3.0, RAMDISK, BoatBuilding, DIY TabletPC. What happened to
the time? http://webhome.idirect.com/~earlcp
Alexander G. M. Smith
2004-10-15 00:15:22 UTC
Permalink
Post by Earl Colby Pottinger
Thank you very much, I am downloading now. Please remember that compared
to you I am a very poor programmer, [...]
Don't be too ashamed, I've gotten practice at reading other people's odd
code at work, and some of it is pretty indecipherable.

- Alex

Loading...