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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Making your own library?

Status
Not open for further replies.

KenshinHimura

Programmer
May 8, 2003
91
0
0
US
I would like to make my own library without using asm. Just like a bunch of qbasic commands would be executed with one function. I don't want to use subs either. I've read radiohands tutorial on how to make your own library but that only explains how to do it in asm. Does the OBJ file that qbasic spits out when you compile a program have nething to do with it?

 
Libraries are precompiled Subs...

I don't think I understand what you mean by...

>>I don't want to use subs either

Thats all they are...

If you have a program, (with subs) ....

1) Open QuickBasic 4.5
2) Open your program
3) Click the Run menu
4) Click Make Library... (under Make EXE File)
5) Type the name of the library you want to make
6) click Make Library

And it will make a library of all the subs and functions in your program...

Then take the definition part of your program...
Such as all the declares, const, dim, etc...
And place it in an include file (*.BI)

It's that easy ;-)


Have Fun, Be Young... Code BASIC
-Josh
cubee101.gif


PROGRAMMER: (n) Red-eyed, mumbling mammal capable of conversing with inanimate objects.
 
Ohhhh......I never saw that function lol. Thx thats what i wanted to do. When i said i didn't want to use subs i meant i didn't want to use subs within a bas file, but from a qlb file. thx for helpin :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top