Qbasicnews.com

Full Version: Trick: Silent QB 4.5 compiler.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4
If you want to get rid of the annoying beeps every time BC.exe finds an error, you can patch bc.exe.

I'm sure the late night coders will find it useful. Specially dedicated to those who regularly stuck their compiler in endless beeping loops....Big Grin
EDITED to correct the error Moneo points in his post.

Open bc.exe (BACKUP IT!) with an hex editor and change the byte 07 (bell) at offset 16C6Ah to 20h( space). The beep is printed with the up arrow ^ that points to the error location.
Code:
16c60:  00 0d 00 b0 20 0f 00 b0 a0 5e 07 a0 0d 0a 07 49
                                      ^
                                    byte to edit
EDITED AGAIN to keep all the info in a single post
I found a different beep for the Missing label error!
Code:
14FA0: 00 0B 02 0D 0A 00 0C 02 07 4C 61 62 65 6C 20 6E  
                                ^
                               14FA8
Replace char 7 at 14FA8 with a space (char 32 or 20h)
Interessting, although I never heard any beeps :???:
Why Z!re, are then affirming that you never make errors? ;-) lol

I have another trick...open your case and rip the speaker right out of there...lol...magically solves the problem for anything imaginable that you can execute that could cause a beep ;-).

Good trick though Antoni, I didn't know about that one
Quote:If you want to get rid of the annoying beeps every time BC.exe finds an error, you can patch bc.exe:

Open bc.exe (BACKUP IT!) with an hex editor and change the byte 07 (bell) at offset 16C69h to 20h( space)....
I have QuickBasic 4.5 and the BC.EXE file is dated 28-Sep-1988.
Just for curiosity, using 2 different hex editors, I looked at location 16C69h, and it does not have an 07. The next byte (16C6A) does contain an 07 and also four bytes later (16C6E) also has an 07.

Maybe not all versions of BC.EXE have the 07 in the same place. So take Antoni's advice and back it up first.
*****
I checked again: Moneo is right, the byte to change is at is at 16C6Ah. My excuses.
That's what i have in my hex editor
Code:
16c60:  00 0d 00 b0 20 0f 00 b0 a0 5e 07 a0 0d 0a 07 49
                                      ^
                                    byte to edit

Z!re: You must be an extraordinary coder! Big Grin

Mystik: I tried your trick years ago, unfortuntely my motherboard has a noisy beeper built-in
Quote:Z!re: You must be an extraordinary coder! Big Grin
Not really Tongue But dont tell anyone Tongue
i am thinking that you are talking about of the Basic compiler from the QB45 only the most used.
Yes, it is, as I said it in the thread's title Smile
I am in agreement with Z!re, I never heard a peep the entire time I programmed in qb...

But I guess if it happens for some people, Job job Antoni :)
QB doesn't beep, BC does. When you are compiling it will beep on errors. Some of you may have the speaker disconnected, turned off or missing, that's why you don't hear the BELL (ASCII 0x07) character.
Pages: 1 2 3 4