[net.lang.mod2] TDI Amiga Modula-2

RMULLER@UMASS.BITNET (04/09/86)

Thanks to Richard Bielak for posting the fix to the streams
problem.  Here's a question which I'm sure isn't a bug, but ...

can someone send me source which successfully calls the intution
routine OpenWindow?  My guru is tired of meditating ... everything I
try generates a "software failure" message.

A possibly related question:  how does one deal with the differences
between Modula-style strings, BCPL strings and C strings?  The
newWindow structure in C, for example, has a field for the title of
the window, which is a pointer to a null-terminated sequence of
characters.  The C compiler generates such a pointer (not to mention
the byte sequence) when it encounters a "string" in a structure
constructor.  What's the simplest way to get this done in Modula?

Thanks in advance.

Rich Muller
RMuller@umass.bitnet

CERRITOS@USC-ECL.ARPA (Bruce Tanner) (04/10/86)

I've successfully opened a window (but no more than that).  

1) Null pointers must be assigned to ADDRESS(0) not NIL.
   This took me a while, I guess that is what a C null pointer look like.

2) S := "Window Title";  window.Title := ADR(S);
   This seems to do the trick for titles in screens and windows.

3) I'm told by TDI that Windows.CloseWindow doesn't work.  Note that
   CloseWindow is also an IDMPFlag...

4) DOSProcessHandler.Exit doesn't seem to work either.

That's all I've been able to figure out in a few days of playing.
I can't get Wait to wait for a CloseWindow signal, so my screen and window
come up and close down immediately.  Anybody have a working window?

-Bruce
-------