BBC BASIC for Windows
Programming >> BBC BASIC language >> compiles to cd disc
http://bb4w.conforums.com/index.cgi?board=language&action=display&num=1399054037

compiles to cd disc
Post by Wendell on May 2nd, 2014, 6:07pm

I am having troubles with compiling a program. I compile it the i try to send a cd. it does not work .
1.I compile it normal to c drive
2. the i try sending compile verision to a cd disc . this does not worl. it also mess up my code.



i am trying to send a copy of a program to my sister
Re: compiles to cd disc
Post by rtr on May 2nd, 2014, 9:35pm

on May 2nd, 2014, 6:07pm, Wendell wrote:
i try sending compile verision to a cd disc . this does not worl. it also mess up my code.

I can think of only one obvious reason why a program would not run from a CD, and that is if it attempts to write a file to the same directory as the program was loaded from. Clearly that can't work if the program was run from a 'read only' medium.

Quote:
i am trying to send a copy of a program to my sister

Writing a program in such a way that it will run on somebody else's PC requires special care. There are several issues that you need to consider, for example you must ensure that your program is not dependent on the initial window size, the display resolution, the colour depth, the DPI (Dots Per Inch) value etc. - all of which may vary between one PC and another.

Even if you have only one PC on which you can test your program, you can still experiment with changing the display resolution, the DPI value and the Windows theme (all usually set in Display Properties) to ensure that it is not unduly dependent on any of those.

Richard.