|
Post by donnybowers on Jan 30, 2021 3:22:48 GMT -5
Today I copied a program I wrote in LB to another directory. It's just a simple api text editor that I use for various purposes. All I copied over was the .bas, .exe (run file) and .tkn files. I forgot the .ssl and .dll files that have always been required in order for a LB program to run. To my amazement the text editor still worked without the .dll and .ssl files in the new directory. How can that happen? Do LB generated programs no longer require these files or is there some other explanation for this? Is it using the .dll and .sll files from the folder I copied my program from or what?
|
|
|
Post by Chris Iverson on Jan 30, 2021 4:21:09 GMT -5
Did you ever copy them to your system32 folder, or somewhere else on your default PATH? Adding them there has sometimes been used as a workaround for needing them available(although it's not recommended if you don't remember to update them when you update LB.)
|
|
|
Post by donnybowers on Jan 31, 2021 9:33:18 GMT -5
Did you ever copy them to your system32 folder, or somewhere else on your default PATH? Adding them there has sometimes been used as a workaround for needing them available(although it's not recommended if you don't remember to update them when you update LB.) I never thought of that. I like the idea, but I'm currently using Wine in Linux and I've never put them in the wine system32 folder. I may try that though. I like the idea of not having to put all those big files in every one of my development directories. My ProgDev folder is currently over 60 GB. Then if I ever distribute a program I just need to remember to include the .dll and .sll files for the new user(s). Note: a lot of that 60 GB is text files. Many of my programs are used to view and edit large files like books in text format as well as data about my hobbies etc. I also have a fairly large collection of LB clips and example programs. But still those .dll and .sll files take up a lot of space and I would like to be able to fit all of my Program Development stuff on a single 32 GB thumb drive. I'm puzzled about this strange behavior. I ended up putting the .dlls and .slls into the new directory because I'm developing something there and it just doesn't seem right not to have them. I'll update this post if I figure it out or learn something new about it. In the mean time I may try putting those files in the Wine system32 directory and eliminate the need for them in my development folders.
|
|
|
Post by donnybowers on Jan 31, 2021 9:39:06 GMT -5
Oh! Wait! If I put the .dlls and .slls in my system32 directory I probably would have to stop using Just BASIC 1.0 and 2.0 right? I sometimes have separate programs auto loaded into them so that I don't have to dig through my folders to update certain programs, ones that don't need the features of Liberty BASIC.
|
|
cundo
Full Member
Muchas Gracias!!
Posts: 146
|
Post by cundo on Jan 31, 2021 9:58:08 GMT -5
I think they are the same for both languages.
|
|
|
Post by xxgeek on Sept 27, 2021 13:39:56 GMT -5
Today I copied a program I wrote in LB to another directory. It's just a simple api text editor that I use for various purposes. All I copied over was the .bas, .exe (run file) and .tkn files. I forgot the .ssl and .dll files that have always been required in order for a LB program to run. To my amazement the text editor still worked without the .dll and .ssl files in the new directory. How can that happen? Do LB generated programs no longer require these files or is there some other explanation for this? Is it using the .dll and .sll files from the folder I copied my program from or what? I'm curious as to what method you used to run the texteditor when it worked apparently without any dll/sll support. . Did you run the exe, the tkn, or the bas file? And did you run it from the IDE, another program, or by clicking the exe.(or whatever) Did you add it to Externals pointing to the tkn, or exe and run it from there? Clicking or running the exe without the supporting dll's, and sll's shouldn't work unless as stated by Chris Iverson 'you may have added them to the system32 dir" or another Windows environment path. Running the tkn from the IDE under "Run">"Run tkn" will work without the dll's/sll's though, as well as Running the bas file from the IDE. Won't work using command line Run LBexe$;"\";tknFile$ (only works for bas files) Will work using Run LBexe$;" -R ";basFile$ edit - A license is required to Run the exe files though. I would guess that the method used by LB when making the tkn "RUN" from IDE Run menu adds the needed support links(for dll'sll file) to the tkn somehow or at least points to the install dir to get the needed dll/sll files. Could you explain the exact method in detail? Thanks, I get the same results as you do using LB in Linux/WINE but only when using the "Run tkn" from LB IDE, or if added to Externals pointing to the tkn file (not the exe, exe won't work without dll/sll files in same dir as tkn)
|
|