#Modula2 help
2 messages in this thread
I'm having a few 'BASIC' problems with Modula 2 (I'm using TDI) and would
appreciate a bit of help. I'm new to the language and I'm sure my problem is
old hat to most of you. Here goes …
I bought PowerWindows2 and it works like a champ. I can make windows and
screens all day long, the problem is trying to run my programs in the nice
new windows. All my commands like WriteLn; WriteString; WriteInt; ReadReal;
WriteReal; etc… still come up in the CLI window. How do I get them in the
PowerWindow's window??
I had the same problem in using a RAW: window, but figuered that one out.
FROM InOut, I'm IMPORTING OpenInputOutputFile and opening
("RAW:0/0/640/200/WindowName"); with no problem. All the InOut functions
interact in that window just fine, but how do I then access the printer? I
was using IMPORT InOut; and InOut.OpenOutputFile("PRT:"); but that doesn't
like OpenInputOutputFile("RAW: etc… ). Thanks for any help.
I realize this is old stuff to most of you, but it's serious stuff to us new
comers to Modula 2. Thanks again.
Joe, You may want to read about consoles and windows and Intuition,
especially about TEXT output to Intuition, in the RKM (ROM Kernel Manual).
You may also want to purchase and read two books: Programmer's Guide TO THE
AMIGA (by Robert A. Peck [very good Amiga book!]) and Amiga Programmer's
Handbook, volume II (by Eugene P. Mortimore. I think that this will get you
started off in the right track. I've been using Modula-2 for several years
and if you are serious about Modula-2 and the Amiga, then I suggest that a
word of wisdom might be in order: "The Amiga is of the class of machines,
where knowing the language isn't enough! You must know the machine FIRST!"
Good luck. If you have questions on Modula-2 or etc., ask anyone on the net.
You will hear a lot of bad mouthing of TDI's compiler. None of which is (in
my opinion) unjustified! You will hear alot of praise of Avant-Garde's
Benchmark Modula-2. Most of which is justified, some of which is not.
Albiet Benchmark Modula-2 is a much more mature compiler and user interface
than what TDI has to offer. Hope all this helps!
Clark Williams (TOPGUN in conference).