Page 1 of 1
Libraries
Posted: Fri Apr 23, 2004 7:17 pm
by Guest
I have no experience making libraries, so I dont really know the advantages/dis-advantages to using them, is there a way I can use libraries to fix compiling a program larger than 64K? If so, what would be the best way to go about that??
Re: Libraries
Posted: Wed May 19, 2004 3:05 pm
by Guest
Using a library could help with the 64K limit.
To make a library made of basic procedures you simply
compile it but use make library instead of make exe.
There are other ways around the 64k limit.
My favorite is to make several bas files.
a main bas file that has executible code in the main portion and perhaps some subs/functions
The other bas files only have subs and functions (with declare statements) but no executible code in the main
portion.
open the main program file, then using the File>Load
load each of the other bas files.
Using F2 you will see that they are all available.
when you save it, QB will make a MAK file so that the next time you open the main program file, it will automatically load the other bas files too.
When you compile, it will compile each bas file separately
then link them together which can make rather large exe.
Just don't go over say 45K on each bas file.
There are also some switches (i think /AH is one) that may help with the 64k limit too.