[Gambas-user] sqlite database inside an executable

Bruce bbruen at ...2308...
Wed May 30 03:19:39 CEST 2012


On Wed, 2012-05-30 at 01:38 +0200, Emil Lenngren wrote:
> If you only use the database file as a container for help files, isn't it
> possible to store the help files directly under a directory structure
> (which can be packed in the executable) or something, instead of having a
> database?
> 
> /Emil
Its' actually got a bit more than just the help files.  It's got the
html sources (in fact they are gambas "weppages", the resources (images
etc.) and some metadata (stuff about paddys-hill, the app and gambas
etc).

The helpviewer uses gb.web and some other code to build each particular
web page's html when requested the first time and cache it and the
resources in user tmp space (just like the IDE help - guess where I get
all these ideas from). It then displays the help in a gb.gt4.WebView
(just like .. :-) )

Anyway, I just thought maybe someone had solved this somehow before.  I
mean normal files in the project (i.e. the ones in the Data branch are
accessible in the executable easily, for example images can be read from
within the executable archive).  Enough time has been spent, I think
I'll just go with the Shell "gba3 -x path_to_app db_name > somewhere"
approach.

Thanks for the interest
Bruce





More information about the User mailing list