Search found 7 matches

by Bulldog
Wed Sep 26, 2007 8:00 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Problem with compiling
Replies: 8
Views: 11656

Linker

I find if I compile from command line and link using linker version 5.31.009 it doesn't crash. But using the linker that comes with qb (3.69) it crashes.

The error is happening here

IF segment = seg1 THEN PUT (0, 0), b1(0), PSET ELSE PUT (0, 0), b2(0), PSET
by Bulldog
Wed Sep 26, 2007 1:05 am
Forum: QBASIC and QB64 Questions & Answers
Topic: Loading More than 1 QLB
Replies: 3
Views: 9422

This will make it easy

Multilib makes quick work of combining libs

Get it here
http://www.programmersheaven.com/downlo ... nload.aspx

or here
http://justbasic.i8.com/multilib.html

or just google multilib qbasic
by Bulldog
Fri Nov 03, 2006 1:30 am
Forum: QBASIC and QB64 Questions & Answers
Topic: HELP! calculating student's average
Replies: 15
Views: 25473

Well no if's hope it works ok. You could also use SELECT CASE but I assumed you wanted only DO LOOP / WHILE WEND. 'Filename: KTDOFOR.BAS ' 'Variable Dictionary ' numcourses - the total number of courses the student took ' total - a running total of all the student's marks ' mark - a mark in one cour...
by Bulldog
Mon Aug 14, 2006 4:30 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: library
Replies: 2
Views: 4561

do you by chance have your function declared as a different type in your include (ie.) declare function OpenFile%(FileName as string)

if so you need the % or whatever type declaration is being used in the include on the end of the function name.
by Bulldog
Mon Aug 14, 2006 8:40 am
Forum: QBASIC and QB64 Questions & Answers
Topic: "^Line too long" error when making EXE
Replies: 14
Views: 15226

Well I did copy and paste the code from above and qb45 gave me a line too long error, after fixing those 2 lines it compiled fine using make exe from the pulldown menus. As a mater of fact if you highlite the code above you can see that there are several lines that are nothing but spaces. At any rat...
by Bulldog
Sun Aug 13, 2006 11:34 am
Forum: QBASIC and QB64 Questions & Answers
Topic: "^Line too long" error when making EXE
Replies: 14
Views: 15226

hope I'm not buttin in here but

Since nobody has replied since yesterday... It looks like line 87 and line 146 are the cause of your problem. I just did somthin like OPEN "tst1.bas" FOR INPUT AS #1 DO LINE INPUT #1, ab$ cntr% = cntr% + 1 PRINT cntr%; " "; LEN(ab$) SLEEP LOOP WHILE NOT EOF(1) line 87 is 244 byte...
by Bulldog
Wed Aug 09, 2006 9:38 am
Forum: QBASIC and QB64 Questions & Answers
Topic: ASCII Value / CHR$ Question
Replies: 2
Views: 5839

I don't know why the compiler lets you do this but

TYPE term
c AS LONG
e AS STRING * n ' this should be illegal
END TYPE

n is undefined at this point so n = 0 at compile time, If you change that to
e AS STRING * 1 it works fine

Very odd.