Qbasic can be used to create slight more complex bat files so to speak. You can do loops and comparisons easier. And as you can make a really lame bat file virus, you can use the dos commands through qbasic to do the same.
If you intend to keep you account on this site, I kindly suggest...
PEEK/POKE are mostly used in graphic oriented programming, because of the above mentioned reason (speed). INP and OUT, althought they have a lot to do with graphics, ten to be used more for sound and other internal procedures. Check out INTTERUPT and ABSOLUTE as well as the X version of each...
On buffs site I belive, is information on how to write to use asm in qbasic to write to the opening sectors of your qbasic file. That way, each time the file was run, you could check a varible in the opening sectors and subtract one from it until the time limit had run out. However, anyone...
I don't know why this is still such a big issue for two big reasons.
One: Numorous sites have all versions of qbasic avalible with onsite letters from microsoft stating that they do not care about people downloading qbasic for free even pds 7.1.
Two: Unless you are some kind of...
I got this out of qb4all.com's tutorials:
This is a topic that most budding game programmers would love to master,
but many just don't know where to start. Pixel by pixel scrolling is
actually pretty simple, there's a bit of math involved in getting the moving
pixels in the right place, but...
You should use
OPEN LPT1 FOR OUTPUT AS #1
or LPT2, whatever your printer is. after finishing printing, you need to send a carriage return character to your computer.
You can shell and use windows wav player, it is described in detail on buff's website. If you want to controll how it plays, you will have to get wav players coded in qbasic, and implement one of them in your program.
To MiggyD:
Socko: "Is there any way I can get the program to check whether the file exists (before attempting to open it) to prevent an error message occuring?"
He did not say that he did not want an error. Just not an error message.
Thank you Alt255. Your help was invaluable. Is there anyway that I could store a password in the exe file that my program could retrieve. The user would then have to enter that password so that my program would fix the file.
The file would not be executable until it is unencrypted. I did not try opening the file in binary mode, but I will try that. This happened awhile ago, so I don't remeber the error. I have come to the conclusion that it would not be practical to encrypt exe files with qbasic. It would be to...
I have an encryption program, and I would like to use it to encrypt certain executable files. Unfortunately, I get an error when I use and open statement to read the files. Why is this, and how do I get around it?
Anyone who has done any c, cpp, c# has been warned about the evils of using global varibles. You should not use them period according to most books. My question is:
If you are not using them to excess, are they consider bad programming in Qbasic?
You can't, the only thing you can do, is use EXIT SUB to end the sub prematurely. Then, if another sub did not call it, it will return to the main prog right after where it was last called.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.