dwt-samples

Jesse Phillips jessekphillips at gmail.com
Mon Feb 11 08:53:54 PST 2008


On Mon, 11 Feb 2008 05:41:57 -0500, Ty Tower wrote:

> Ok so I have the examples in directory dwt/dwtexampes   now I want to
> compile them on a linux machine. Did you say this was not yet possible?
> 
> If I want to get a look at the folowing ...how do I do it [code]
> module dwtexamples.helloworld.HelloWorld1;
> 
> 
> import dwt.widgets.Display;
> import dwt.widgets.Shell;
> 
> /*
>  * This example demonstrates the minimum amount of code required * to
>  open an DWT Shell and process the events. */
> void main(){
>     Display display = new Display ();
>     Shell shell = new Shell (display);
>     shell.open ();
>     while (!shell.isDisposed ()) {
>         if (!display.readAndDispatch ()) display.sleep ();
>     }
>     display.dispose ();
> }
> 
> // for unknown reason, there are linker errors. These imports are the
> workaround import tango.io.Stdout;
> import tango.math.Math;
> import tango.text.convert.Format;
> import tango.util.Convert;
> import tango.util.PathUtil;
> 
> [/code]

Ty Tower,
The samples should work in linux. I don't see why you would need to 
import any tango libraries. I use DSSS to do the building for me as there 
are a lot of libs it links in.


More information about the Digitalmars-d-dwt mailing list