Re: Embed glade file into a binary

2016-09-17 Thread Geert via Digitalmars-d-learn
On Saturday, 17 September 2016 at 19:07:33 UTC, Lodovico Giaretta wrote: addFromFile expects the *name* of the file. Because you already have the *contents* of the file, you should change method. Maybe addFromString is the correct one, but I'm not sure. "g.addFromString(fileContent);" It w

Re: Embed glade file into a binary

2016-09-17 Thread Lodovico Giaretta via Digitalmars-d-learn
On Saturday, 17 September 2016 at 19:01:10 UTC, Geert wrote: On Saturday, 17 September 2016 at 18:36:52 UTC, llmp wrote: On Saturday, 17 September 2016 at 18:18:37 UTC, Geert wrote: I've compiled a small application, and it runs when i execute it at the same directory where is the glade file.

Re: Embed glade file into a binary

2016-09-17 Thread Geert via Digitalmars-d-learn
On Saturday, 17 September 2016 at 18:36:52 UTC, llmp wrote: On Saturday, 17 September 2016 at 18:18:37 UTC, Geert wrote: I've compiled a small application, and it runs when i execute it at the same directory where is the glade file. Is there a way to embed a glade file into a binary? enum fi

Re: Embed glade file into a binary

2016-09-17 Thread llmp via Digitalmars-d-learn
On Saturday, 17 September 2016 at 18:18:37 UTC, Geert wrote: I've compiled a small application, and it runs when i execute it at the same directory where is the glade file. Is there a way to embed a glade file into a binary? enum fileContent = import(file); fileContent is a static array of u

Embed glade file into a binary

2016-09-17 Thread Geert via Digitalmars-d-learn
I've compiled a small application, and it runs when i execute it at the same directory where is the glade file. Is there a way to embed a glade file into a binary?