Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
I have a DOS exe file written in QBASIC I think !! got a Q?
#1
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
Reply
#2
Post the source code so we can look at it here
Reply
#3
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
ravelling Curmudgeon
(geocities sites require copying and pasting URLs.)
I liked spam better when it was something that came in a can.
Windows should be defenestrated.
Reply
#4
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.
Peace cannot be obtained without war. Why? If there is already peace, it is unnecessary for war. If there is no peace, there is already war."

Visit www.neobasic.net to see rubbish in all its finest.
Reply
#5
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.
ravelling Curmudgeon
(geocities sites require copying and pasting URLs.)
I liked spam better when it was something that came in a can.
Windows should be defenestrated.
Reply
#6
Quote:Only the method to get the random numbers from a seed, usually TIMER.

Agamemnus means that the seed used is usually TIMER.
SCUMM (the band) on Myspace!
ComputerEmuzone Games Studio
underBASIC, homegrown musicians
[img]http://www.ojodepez-fanzine.net/almacen/yoghourtslover.png[/i
Reply
#7
(I'll do most anything to relieve boredom. Sticking my tongue in an AC outlet is getting more and more tempting.)
ravelling Curmudgeon
(geocities sites require copying and pasting URLs.)
I liked spam better when it was something that came in a can.
Windows should be defenestrated.
Reply
#8
Okay now it is confusing, isn't QBASIC short for QuickBasic??? I thought it was... umm. That's odd.
ovaProgramming.

One night I had a dream where I was breaking balls. The next morning, BALLSBREAKER was born.

Quote: Excellent. Now you can have things without paying for them.

BALLSBREAKER 2
~-_-Status Report-_-~
Engine: 94%
Graphics: 95%
Sound: 100%
A Severe Error has crippled BB2 for the time being... I have to figure it out, but until then you won't see much of it Sad.
-----------------------------
Reply
#9
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
Reply
#10
They are virtually the same however. Quickbasic has some new commands and kills some old commands (I think), and has a compiler.
Peace cannot be obtained without war. Why? If there is already peace, it is unnecessary for war. If there is no peace, there is already war."

Visit www.neobasic.net to see rubbish in all its finest.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)