Qbasicnews.com

Full Version: I have a DOS exe file written in QBASIC I think !! got a Q?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
HI guys,

I have a Q BASIC program file . I mean a file writeen in Q BASIC. it is a DOS file kinda like a quiz. and when ever i run it generates random number and then calculates the answer for it. So we have a option to enter the answer and then the program checks if right or wrong and gives out the right answer on the screen. I was wondering if there is any possible way that I could find the answers for it before hand ?? Like is there a way to decompile the program or something ? I have the original source code file too.. but when i looked at it didnt make much sense to me since i am very new to Q BASIC stuff Sad If anyone willing to help please message me on MSN IM @ mvprashanth@hotmail.com Thanks Smile
Post the source code so we can look at it here
question" to me.) Wrong name of program. (If you have a .EXE, it wasn't made with Qbasic. It might, however, have been made with QuickBasic.) Wrong understanding of concepts. Smile

No, you can't decompile your .EXE. But, as naive and tiresome as that question is, it's nothing when considering what you say afterwards. If you already have the source code, why on God's still partially green Earth are you asking about decompiling your .EXE?????? What exactly do you want the alleged "decompiler" to do? Hellllllooooooo. Now, then. If you think that source code is too confusing to figure out what "the answers" are, what makes you think figuring it out from the executable would be *easier*? Smile
because he thinks the random numbers are stored in the exe.

The random numbers are not stored in the exe. Only the method to get the random numbers from a seed, usually TIMER.
a "binary editor." (And TIMER generates random numbers? Interesting. When I use it, all I get is the number of seconds since midnight.)



Quote:because he thinks the random numbers are stored in the exe.

The random numbers are not stored in the exe. Only the method to get the random numbers from a seed, usually TIMER.
Quote:Only the method to get the random numbers from a seed, usually TIMER.

Agamemnus means that the seed used is usually TIMER.
(I'll do most anything to relieve boredom. Sticking my tongue in an AC outlet is getting more and more tempting.)
Okay now it is confusing, isn't QBASIC short for QuickBasic??? I thought it was... umm. That's odd.
Quote:Okay now it is confusing, isn't QBASIC short for QuickBasic??? I thought it was... umm. That's odd.

Nope, they're two different versions. QBASIC (qbasic.exe) is an interpreter only - comes free with MSDOS and Win9x. QuickBasic is a basic compiler package that has some more features. They both run BAS code, but programs made in QB45 utilizing those added features can't be run under the Qbasic interpreter. QB compiles to EXE's - Qbasic doesn't.

Quote:(I'll do most anything to relieve boredom. Sticking my tongue in an AC outlet is getting more and more tempting.)

Lol

- Dav
They are virtually the same however. Quickbasic has some new commands and kills some old commands (I think), and has a compiler.
Pages: 1 2