Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • 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!

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

LINK TO THIS FORUM!

Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Partner With Us!

"Best Of Breed" Forums Add Stickiness To Your Site
Partner Button
(Download This Button Today!)

Feedback

"...Thank you. It's already helped me greatly, and I enjoy just reading the inputs from the other members..."

Geography

Where in the world do Tek-Tips members come from?

Using two libraries at once

sandmann999 (Programmer)
29 Jul 08 13:27
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.)


Thanks.
Buff1 (Programmer)
31 Jul 08 2:00
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.
http://oasys.rain.prohosting.com/frameex1.htm
 
sandmann999 (Programmer)
31 Jul 08 11:32
Hrm...
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?
Buff1 (Programmer)
31 Jul 08 21:50
yes - combine them (if you have the necessary files) into a new library called something else.
Buff1 (Programmer)
31 Jul 08 21:53
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.

 

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!

Back To Forum

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