Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Qbasics for Windows
#1
For a long time, to be able to use big dimensions in the Quickbasic I have been thinking to use the Windows. In some helps it is said that the Quickbasic also can be used for the Windows but never I have known how.

I made a test for a big dimension in the Visual Basics 1, 2 and 3 for Windows:

Code:
Dim Nothing(100, 100, 100) As Integer

The Visual Basics for Windows 1 and 2 respond with the error message: "Subscript Out of Range"; but NOT in the Visual Basic 3.

Making the Link knowledge base I found the next article that I put as the first article:

Determining the Default Exetype Value in Microsoft Link

In this article it is said that, beginning with the version 5.3 of the Link it's possible to create executables for Windows.

Seeing the versions of the several Quickbasics Links in the QBasics Files Dictionary, it can be read that only the Visual Basics for Ms-Dos have the version 5.31.009 to be used for Windows.

I did install the Visbasic Dos.

Now, to create an executable for the Windows I have been trying the next three steps using the files of the Visbasic Dos:


(Step One).~ The Link, to create an executable, it needs an object file (Test.Obj). The object file (Test.Obj) it is produced by the Basic Compiler using the source file (Test.Bas).

Using the next line in any Basic compiler:

Code:
Dim Nothing(100, 100, 100) As Integer

it responds with the error: "Subscript Out of Range". So that, as a source file I used the next lines in the source file Test.Bas:

Code:
Cls
Input "Put a number for a matrix of 3 dimensions: ", Variable
Dim Test(Variable, Variable, Variable) As Integer
System

In that way it is possible to produce the file Test.Obj.


(Step Two).~ The Link also it needs a definitions file (Test.Def) in the one which you indicate in what operating system you are going to use the executable. The definitions file (Test.Def) only it's a text file. In this case, apparently only it needs to have the next line in this case:

"Exetype Windows"

It is Not necessary to indicate that it is for the Windows 3.0 because that it is defaulted from the Link 5.3, that can be read in the article:

Prb: Link versions 5.03 to 5.2 Require Exetype Windows Stmt.


(Step Three).~ To use the Link to create the executable Test.Exe using the next command line:

Link  Test.Obj, Test.Exe, , , Test.Def

It compiles without any error, but when I run the Test.exe always shows the next error message:

"This program requires Microsoft Windows."

I don't know why it can't detect the Windows.
What is it wrong in all this?
I am using Windows 98SE.
I couldn't test this in a Windows 3.1
MY QBASIC'S PAGE                                                  I ONLY USE WINDOWS 98SE
Reply


Messages In This Thread
Qbasics for Windows - by Opresion - 09-19-2007, 04:49 PM
Re: Qbasics for Windows - by Opresion - 09-19-2007, 05:05 PM
Re: Qbasics for Windows - by Opresion - 09-19-2007, 05:09 PM
Qbasics for Windows - by Opresion - 09-19-2007, 05:13 PM
The Qbasics for Windows - by Opresion - 10-01-2007, 04:13 PM
Re: Qbasics for Windows - by Ralph - 01-10-2008, 09:56 AM
Re: Qbasics for Windows - by Ralph - 01-13-2008, 12:29 AM
Qbasics for Windows - by Opresion - 01-30-2008, 05:13 PM
Re: Qbasics for Windows - by Ralph - 01-31-2008, 06:58 AM
Qbasics for Windows - by Opresion - 02-01-2008, 01:05 PM
Re: Qbasics for Windows - by Ralph - 02-02-2008, 04:50 AM
Re: Qbasics for Windows - by Ralph - 02-02-2008, 10:40 AM
Re: Qbasics for Windows - by Opresion - 02-06-2008, 12:35 PM
Qbasics for Windows - by Opresion - 02-06-2008, 12:46 PM
Re: Qbasics for Windows - by Ralph - 02-07-2008, 02:48 AM
QBasics for Windows - by Opresion - 02-08-2008, 12:29 PM
Re: Qbasics for Windows - by Ralph - 02-09-2008, 07:31 AM
Qbasics for Windows - by Opresion - 02-17-2008, 02:32 PM
Re: Qbasics for Windows - by Ralph - 02-18-2008, 07:50 AM
Qbasics for Windows - by Opresion - 02-18-2008, 12:19 PM
Re: Qbasics for Windows - by Ralph - 02-19-2008, 07:48 AM

Forum Jump:


Users browsing this thread: 3 Guest(s)