Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Using two libraries at once

Using two libraries at once

Using two libraries at once

Hi everyone,
I've been programming in QBasic for probably 20 years (as a hobby only), but this is the first time I've ever ventured into using graphics and sound libraries.

The two that seemed to work well for me are DirectQB and DS4QB (direct sound for QBasic).

The only problem I'm running into is that to use DirectQB, you have to put a /ldqb in the command line after QB.exe.  When in this mode, it does not recognize the CALL ABSOLUTE command.

As most know, to use the CALL ABSOLUTE command, you need a /l after QB.exe and DS4QB uses CALL ABSOLUTE to run.

How do I get both to run at the same time?  Any ideas?  I've tried putting both on the command line (Qb.exe /l /ldqb) but it won't accept more than one.

Any ideas?

(Secondly, I'd use both the sound and graphics options that come with DirectQB and be done with it, but DirectQB only plays sound smaller than 64kb, whereas DS4QB can play entire MP3 files.)


RE: Using two libraries at once

You will have to combine the libraries into a new one.
There are examples of how to combine libraries around. It's
been a long time since ive done that as I work with powerbasic for windows now.

My website might if i recall have something on that in the tips.

RE: Using two libraries at once

Ok, after looking into it after reading your post, it looks like the direct sound stuff doesn't have a *.qlb or a *.lib attached to it.  Its designed that you include a *.bas file as a module in your program, which works pretty slick.

The problem is is that it uses the CALL ABSOLUTE somewhere in its coding, which requires the /l parameter.  

The directQB library is a regular library, but to access it, it requires /ldqb as a parameter.

So, does that mean I'd have to combine the DirectQB library with QBasic's normal library?  Like, the DQB.LIB and QB.LIB?

RE: Using two libraries at once

yes - combine them (if you have the necessary files) into a new library called something else.

RE: Using two libraries at once

perhaps a better option than using include metastatement for the sound, would be to use the load option for the sound program. That will make it a separate bas that will be compiled separately then linked. Less chance of running out of space that way.


Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close