BBC BASIC for Windows
« Compile embedded file list »

Welcome Guest. Please Login or Register.
Apr 5th, 2018, 9:59pm



ATTENTION MEMBERS: Conforums will be closing it doors and discontinuing its service on April 15, 2018.
Ad-Free has been deactivated. Outstanding Ad-Free credits will be reimbursed to respective payment methods.

If you require a dump of the post on your message board, please come to the support board and request it.


Thank you Conforums members.

BBC BASIC for Windows Resources
Online BBC BASIC for Windows documentation
BBC BASIC for Windows Beginners' Tutorial
BBC BASIC Home Page
BBC BASIC on Rosetta Code
BBC BASIC discussion group
BBC BASIC for Windows Programmers' Reference

« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 thread  Author  Topic: Compile embedded file list  (Read 705 times)
Malvern
Guest
xx Compile embedded file list
« Thread started on: Feb 25th, 2012, 1:42pm »

The current compile gets Install file names even from remmed lines and strings.
It looks as if the Find code is used and thus it can insert garbage names into the list.
PROCout(F%,1,"REM INSTALL @lib$+"+CHR$34+"WINLIB2"+CHR$34+" near .....
for instance would show a non-existent file name in the list.
User IP Logged

admin
Administrator
ImageImageImageImageImage


member is offline

Avatar




PM


Posts: 1145
xx Re: Compile embedded file list
« Reply #1 on: Feb 25th, 2012, 3:44pm »

on Feb 25th, 2012, 1:42pm, Malvern wrote:
The current compile gets Install file names even from remmed lines and strings.

Yes, it's pretty unsophisticated and only intended to make a guess at the files that require embedding.

The important point here is that this method of discovering which files need to be embedded is a fallback: it only gets used when there is neither an existing executable nor a REM!Embed directive present.

If there are one or more REM!Embed directives in the program then they determine the files that will be embedded in the executable, so this is the best method to use. If there is no REM!Embed but there is an existing executable file (in the default location) then the list of embedded files will be taken from that.

So it really doesn't matter that the 'fallback' method is fairly crude.

Richard.
User IP Logged

Pages: 1  Notify Send Topic Print
« Previous Topic | Next Topic »

| |

This forum powered for FREE by Conforums ©
Terms of Service | Privacy Policy | Conforums Support | Parental Controls