Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations dencom on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need Some Help With Libraries Please 1

Status
Not open for further replies.

mpaone12

Technical User
Oct 15, 2000
13
US
Could someone explain how libraries work to me?
for example, where do you get them? How would you incorporate them into a program? what is the syntax and maybe some examples? what folder should they be in to work correctly with a program? and also what is the sub function Absolute??...i always try running programs d/led from web sites, and it says it cannot find this file..as well as other library files. Thanks alot! s-)
 
Libraries are external programs with functions that can be used in Qbasic. They can be written in Either assembly or native Qbasic (most of the really good ones are assembly). Basically they are a collection of SUBs.

You call functions from the libraries the same way that you call a sub: Either with CALL or by simply the name of the SUB

To add a library to a program go to the top line and add '$INCLUDE 'directory + libraryname.bi'
If you do not include the directory name it Qbasic assumes that it is in the master path (usually c:\qb45)

You can find libraries on the internet by going to any search engine and typing in "qbasic + libraries" you could be more specific. Common uses for libraries are: High resolution graphics, mouse drivers, EMS/XMS memory, and high-level mathematics

If you are sketchy about anything I have said please follow up and I will be more than happy to help you


PS: most libraries do not work with Windows XP



"You idiots, teacher was trying to teach you to be great artists, but you've only learned to be great mimics"
-Unknown taoist artist
Originality is the key to greatness
 
You would compile with future library the same way that you compile any program, there is no difference, the compiler automatically does that.

I think what they mean by loading it with future library is to load it like this

RUN c:\qb45\qb.exe /L future

remember if you do not include the path of the library then qbasic assumes it is in the master path

"You idiots, teacher was trying to teach you to be great artists, but you've only learned to be great mimics"
-Unknown taoist artist
Originality is the key to greatness
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top