954,559 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Displaying QBasic Object Code

After compiling a QBasic program, an object code file is created (.obj).
My question is: How do I look at that file?
I've tried opening it with a number of different programs, but all I get is gibberish.
Thanks for any help....

tbartoli
Newbie Poster
3 posts since Feb 2005
Reputation Points: 10
Solved Threads: 0
 

The object file is a file of basically compiled binary. You can't view it in an understandable way..... you could use a hex editor, or some other means of numbering to know what is going on, but for most people.... you might as well consider the object file the same as the EXE (they are not, an EXE is linked, where as an object file is NOT linked... but essentially, they are both compiled).

Comatose
Taboo Programmer
Team Colleague
2,910 posts since Dec 2004
Reputation Points: 361
Solved Threads: 215
 
The object file is a file of basically compiled binary. You can't view it in an understandable way..... you could use a hex editor, or some other means of numbering to know what is going on, but for most people.... you might as well consider the object file the same as the EXE (they are not, an EXE is linked, where as an object file is NOT linked... but essentially, they are both compiled).

When I run the EXE file, I get an error at some address. How do I find were that problem is?... Thanks

tbartoli
Newbie Poster
3 posts since Feb 2005
Reputation Points: 10
Solved Threads: 0
 

You're talking about QBasic, on what operating system by chance?

Comatose
Taboo Programmer
Team Colleague
2,910 posts since Dec 2004
Reputation Points: 361
Solved Threads: 215
 
You're talking about QBasic, on what operating system by chance?

It's a windows 2000 OS but, of course, QBasic runs in a DOS emulated window.

tbartoli
Newbie Poster
3 posts since Feb 2005
Reputation Points: 10
Solved Threads: 0
 

There has been a lot of talk about QBasic being a 16 bit programming language.... while later versions of windows are not. This causes a problem when trying to run a compiled EXE that's compiled for 16 bit..... there are threads on here regarding the same situation. Check under Forum Index at the top, then click qbasic/visual basic... you'll find a couple threads on using qbasic (exe's and ide's) with later versions of windows. (doesn't look like anything good).

Comatose
Taboo Programmer
Team Colleague
2,910 posts since Dec 2004
Reputation Points: 361
Solved Threads: 215
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You