Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

qucikbasic 4.5 compiling to .exe help

qucikbasic 4.5 compiling to .exe help

qucikbasic 4.5 compiling to .exe help

I can compile a .bas file to .exe in quickbasic45 and it works fine. But when I try to run the program, it won't work. It runs a normal program that says hello but if I put the command screen followed by a number for the screen type, it won't work. When I try to compile it to a .com file, the converter says it can't convert it because when I compiled it to a .exe file, it created a stack segment. Is there any way to not have the compiler in quickbasic45 add the stack segment to it. Otherwise it won't work. When I ran the information command on the the exe-to-com converter it says I'am having problems with the initial cs:ip stack segment (hex - 0528:0010 no decimal conversion) and the initial ss:sp stack segment (hex - 0582:0080 dec - 128 stack size)and that's why it won't convert.
If someone could really help me out I would appreicate it.

RE: qucikbasic 4.5 compiling to .exe help

try compiling as "A STAND-ALONE" and not as "REQUIRES BRUN45" in RUN>MAKE EXE menu.


Never be afraid to try something new. Remember that amateurs built the Ark. Professionals built the Titanic.

RE: qucikbasic 4.5 compiling to .exe help

I have found some old basic files on a disk, but they have been converted to exe files so i cant see and change the source code. Is it possible to reconvert the exe files to bas files?

RE: qucikbasic 4.5 compiling to .exe help

No in a nutshell.


RE: qucikbasic 4.5 compiling to .exe help

You cannot convert QB 4.5 .EXE programs to .COM programs. The requirements for a .COM program are (in addition to no stack segment) that everything (data, code, stack, etc.) fit within 64K. There is no inherent benefit in making a .COM program - certainly no differences regarding types of screen output.

Saying SCREEN n where n is some screen type is not related to being an .EXE or .COM program. You can only use the SCREEN types supported by your video adapter (or supported by your video adapter, driver, and Windows version, if running in a "DOS window").

To see which SCREEN n modes work, go to the QuickBASIC help, select Index, type S to get down to the "S's" and right-click SCREEN. Then click DETAILS, read about how it works, and then right-click the link to Screen Mode Summary about 6 lines down in the Details page. The summary will describe what works and what you get, for modes in each kind of display environment.

- Chuck Somerville

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close