
Calling Libraries Made By the Make Library Command
Quote:
> Hello.
> I'm using VB Professional Edition right now. Does anybody have any idea
> on how to create libraries from this using the Make Library command? For
> example, the structure of the code before choosing the command? Or even,
> how to call routines from a library made using this command? Thanks for
> everything!
> Sincerely,
> Vincent
Since you didn't specify the version I'm assuming you mean VB DOS.
Once you make the library you will have a .LIB file, I don't recall if
it automatically makes the corresponding .QLB. If it doesn't check the
docs (I believe it is in the on-line help also) on using LIB to make a
.QLB file.
To use the library, when you load VBDOS use the /L switch followed by
the filename to tell it what .QLB file to load. You'll also neeed to
put the definitions of and Functions or Sub you had in your library into
the new program. This is best done by putting them into a text file
with the .BI extension and using the $INCLUDE metacommand.
Once this is done your program will use them just as if they were subs
and functions of a module of the project. When you compile from within
the development environment it'll automaticly look for your .LIB file to
link with your .OBJ to make the .EXE
Hope this helps.
Best,
Bill
(Remove SPAMBLOCK from my e-mail address to reply.)