|
Post by Silverpixle108 on Jun 2, 2003 14:58:36 GMT
im currently using Qbasic 4.5. Last night i downloaded some .Bas files and tried to run them but i got this error:
Subprogram not Defined
I tried to fix that by downloading some Library files and add them to Qbasic.
Its not just one .Bas file but all of them except those very basic ones I made with Qbasic 1.0
Is there anyway I can Resolve this??
|
|
|
Post by buffoasys on Jun 2, 2003 18:23:08 GMT
If, in fact, you are uing QuickBasic 4.5, the most likely cause is trying to use call absolute and/or call interrupt.
In Qbasic 1.1, Call absolute is included in the ide.
When using 4.5 however, you need to use a library that contains call absolute and/or call interrupt.
Start QuickBasic the following way (change your pif file or from the command prompt)
QB /L
the /L switch tells qb to load a library with optional name following. If no library name is specified then QB.QLB is used which contains call interrupt and call absolute.
I always start with QB /L whether im using the library or not (but most of my applications do use it at a minimum for mouse control).
Try that and see if it helps.
One more thing.
Qbasic is the one sent with MS-DOS 5.0 up that does not include a compiler. QuickBasic is the development system that does include a compiler. Pleas don't use them interchangably. Though the ide of Qbasic and QuickBasic 4.5 are very similar and syntax is identical, since they are very closely related, there are differences like this that distinguish them.
|
|
|
Post by Silverpixle108 on Jun 2, 2003 22:36:54 GMT
sure did thanks
|
|
|
Post by djwendel on Sept 21, 2023 1:36:17 GMT
20 years later this post still helped!! Thanks!
|
|