On Saturday, 16 February 2019 at 16:37:17 UTC, Andre Pany wrote:
On Saturday, 16 February 2019 at 16:28:09 UTC, Ron Tarrant wrote:
[...]

Create a file sample1.d with following content

#!/usr/bin/env dub
/+ dub.sdl:
dependency "vibe-d" version="~>0.8.0"
+/
void main()
{
    import vibe.d;
    listenHTTP(":8080", (req, res) {
        res.writeBody("Hello, World: " ~ req.path);
    });
    runApplication();
}

Replace the dependency with the gtkd dependency and the main coding with the gtkd coding.

To start the application you can use one of these commands

dub sample1.d
dub sample1
./sample1

Kind regards
Andre

The dependency should be
dependency "gtk-d" version="~>3.8.5"

You can get this into from here
http://code.dlang.org/packages/gtk-d

Kind regards
Andre

Reply via email to