I am looking for functions to do the following directory-related actions. I know I can probably do these via dhc.shell.execute or dhc.shell.command, but if there's a built-in function, I'd prefer to use that. I don't see anything in the "Files" sample or in the list of external javascript functions in the help.
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?
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!
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?
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?
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!
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: "
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.
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?
Todo el mundo puede leer el foro de soporte de DecSoft para aprender del mismo, sin embargo, sólo los clientes de DecSoft pueden abrir nuevos hilos. Compre una o más licencias de productos de DecSoft y obtendrá este y otros beneficios.
Este sitio utiliza "cookies" útiles para almacenar sus preferencias.