Posts by Bryce Beattie

Show threads by Bryce Beattie
25 posts found, page 1 of 2

Bryce Beattie (In thread: HTML Compiler registration)
Okay, that worked, thanks!

Bryce Beattie (In thread: HTML Compiler registration)

I downloaded the Decsoft HTML Compiler installer from the website and installed it. During the installation process, It displayed the 2022.8 update history. However, when I launch the program, the program bar and Help > About this program screen says 2022.7.

My last upgrade purchase was 3/16/2022, and according to the 2022.7 entry in the history, I should be eligible for this version, as it was after 07-25-2021, right?

When I go to Help > program register and enter in my license info, then click the OK button, the "register the program" dialog box disappears, but I get no indication that the license registration was successful, or if it failed. The program bar still reads "Unregistered ..." and I get the Unregistered popup when I relaunch the program. Am I doing something wrong?


Bryce Beattie (In thread: HTML Compiler compilation)

I'm just looking to keep my "source code" and "ready to distribute" folders organized. The batch file option looks to be a pretty good one. I had forgotten about the CLI option. Thanks!


Bryce Beattie (In thread: HTML Compiler compilation)

I think I remember in the old HTML Compiler there being some options for choosing the compiled app's file name / location. Does that still exist somewhere? I can't seem to find it.

Also, in the compilation options, I set a custom .ico, And then when I renamed the compiled file, somehow it lost the custom .ico, too, and it reverts to that httml 5 shield. Is that something my system is doing?


Bryce Beattie (In thread: HTML Compiler local storage)

I'm using Decsoft HTML Compiler, and I have a little app that saves some data to localstorage. Where is that data actually being saved? Will the user be able to get at that data everytime he opens the app?


Bryce Beattie (In thread: HTC: error when compiling)

Ok, compiling the "Hello" app worked.

I had my project .dhc file in the same directory at the html file. When I moved the code into it's own app folder like in the samples, It compiles and runs fine now. Thanks!


Bryce Beattie (In thread: HTC: error when compiling)
I made sure that all folder/code editors are closed and tried again, but got the same result. And I tried it from another computer as well (both are Windows 10) and got the same result. I also have forgotten and don't see where I would select or change the destination folder or output .exe file.

Bryce Beattie (In thread: HTC: error when compiling)

I was getting a strange error when compiling, so I installed the newest version and tried to compile again. I still got the same error, so I made a test project that has a single html file and I am still getting an error. Here is the content of the index.html file:

And when I compile, I just get a meaasge that says: " :: Sorry, and error occur and the 64 bits compilation fails, please, try again" and no indication of the cause of the failure. Any idea what could be going on?


Bryce Beattie (In thread: New HTML Compiler - read external file?)
Is there a function to read a text file into a variable? I see in the docs a dhc.files.writeTextFile(), dhc.files.deleteFile(), and dhc.files.fileExists(), but no similar dhc.files.readTextFile().

Bryce Beattie (In thread: HTML Compiler and sqlite?)

Amin, thanks for the heads up. Right now, I'm mostly using HTML Compiler rather than the App Builder, And I've come up with 2 solutions to use databases. The first was because I had a large dataset in sqlite format, so I wrote an interface that uses the command line version of sqlite, and parses out the text it returns. That one has some issues, but works well enough fetching data, which is what I really needed it for.

The second solution was to use an in-memory javascript database that has some concept of persistence built in. I'm using loki.js, and all I had to do was write a handler that takes a serialized version of the database and reads/writes it to a file via HTML Compiler's file functions. This wouldn't be ideal for an enormous database, but it's been working great for the projects I've been working on. I should probably post that code somewhere.


Bryce Beattie (In thread: HTML Compiler: appShellExec vs appGetCmdOutput)

I'm writing a program that will use an external command to do some work, then get some results back from that external command.

If I use appShellExec, I can add all the needed arguments to the command, but I can't get back the output I need.

If I use appGetCmdOutput, I cannot include the arguments in the call to the external executable. If I try to include the arguments (example: "./sqlite3.exe test.db", I get a "file not exists" error.

I have tried to have the program write a windows .bat file with the command + arguments, and then running the bat file, but that is not working well, either.

Is there any way I can get you to add an optional Args argument so that the new call is appGetCmdOutput( string ExecPath, boolean hideWindow, string workingDir, string Args ) or something similar?


Bryce Beattie (In thread: HTML Compiler and sqlite?)
Fair enough, thanks. Best of luck with the new App Builder!

Bryce Beattie (In thread: HTML Compiler and sqlite?)
Any chance you might someday build in a way to directly work will sqlite databases? I'm starting to put together a solution that uses appGetCmdOutput to run sqlite3.exe commands and parse the output, but there will be some quirks. I think they could be avoided if the app could access the db via the dll instead.

Bryce Beattie (In thread: Debugging javascript in HTML Compiler)
I was afraid of that. As I've looked around, apparently this is a common issue when using the WebBrowser control. Oh, well. I'll figure out what's causing it.

Bryce Beattie (In thread: Debugging javascript in HTML Compiler)

When I compile a program and run the compiled executable, I get the following error:

error

When I load the same page (which loads that ui.js file) in any browser, I do not get any javascript errors. If I ignore the error and "continue running scripts" everything seems to work, but I would really like to track down what's causing that error.

I suspect it's a syntax error generated by whatever version of javascript the Web Browser Control is using, as I got a similar error before for a different issue, and was able to solve it with a polyfill. Is there any way to get a better detailed error message, or to show a javascript console, like I'd do in a browser?

Everybody can read the DecSoft support forum for learning purposes, however only DecSoft customers can post new threads. Purchase one or more licenses of some DecSoft products in order to give this and other benefits.

This website uses some useful cookies to store your preferences.

I agree. Hide this note. Give me more information.